update class ByteBuffer