Added another init function in ByteBuffer.