improve class ByteBuffer