| 程序包 | 说明 |
|---|---|
| com.gettyio.core.buffer |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
AutoByteBuffer.read()
读取一个数据到byte,从readIndex位置开始,每读取一个,指针+1,类似byteBuffer的get方法
|
byte |
AutoByteBuffer.read(int index)
读取制定下标的一个byte。
|
byte |
AutoByteBuffer.readByte()
读取数据到byte,1 byte,从readIndex位置开始
|
int |
AutoByteBuffer.readBytes(byte[] bytes)
读取数据到bytes,从readIndex位置开始
|
int |
AutoByteBuffer.readBytes(byte[] bytes,
int offset,
int length)
读取数据到bytes,写入从offset到offset+length的区域
|
int |
AutoByteBuffer.readInt()
读取integer值,读4 byte转换为integer,从readIndex位置开始
|
AutoByteBuffer |
AutoByteBuffer.readRetainedSlice(int len)
读取指定长度的数据,返回AutoByteBuffer
|
short |
AutoByteBuffer.readUnsignedByte()
读取无符号byte
|
Copyright © 2021. All rights reserved.