public class ByteBufAdapter extends Object implements ByteBuf
| 构造器和说明 |
|---|
ByteBufAdapter(ByteBuf byteBuf) |
| 限定符和类型 | 方法和说明 |
|---|---|
ByteBufAllocator |
alloc()
Returns the
ByteBufAllocator which created this buffer. |
byte[] |
array()
ByteBuf 的字节数组形态
|
ByteBuffer |
asByteBuffer()
返回 ByteBuffer 形态,PooledNioByteBuf 不支持该方法
|
int |
capacity()
最大限制
|
void |
close() |
ByteBuf |
copy()
复制个 ByteBuf , 连同 buffer 的数据一起复制
|
int |
expect(char expect,
Charset charset)
查找下一个 expect 字符的出现的位置(使用指定的编码),该方法不会更新 readerIndex 值。
|
int |
expect(String expect,
Charset charset)
查找下一个 expect 字符串的出现的位置(使用指定的编码),该方法不会更新 readerIndex 值。
|
int |
expectLast(char expect,
Charset charset)
查找最后一个 expect 字符的出现的位置(使用指定的编码),该方法不会更新 readerIndex 值。
|
int |
expectLast(String expect,
Charset charset)
查找最后一个 expect 字符串的出现的位置(使用指定的编码),该方法不会更新 readerIndex 值。
|
ByteBuf |
flush()
same as markWriter()
|
void |
free()
释放 Buffer 占用的内存
|
byte |
getByte(int offset)
从 offset 偏移量的位置上开始读取 1 字节。
|
int |
getBytes(int offset,
byte[] b)
从 offset 偏移量的位置上开始读取一定数量的字节,并将它们存储到缓冲区数组 b 中。
|
int |
getBytes(int offset,
byte[] b,
int off,
int len)
从 offset 偏移量的位置上开始读取 len 数量的字节,并将它们存储到 off 位置开始的缓冲区数组 b 中。
|
float |
getFloat32(int offset)
读取 4 字节的 float(大端字节序),该方法不会更新 readerIndex 值。
|
float |
getFloat32LE(int offset)
读取 4 字节的 float(小端字节序),该方法不会更新 readerIndex 值。
|
double |
getFloat64(int offset)
读取 8 字节的 double(大端字节序),该方法不会更新 readerIndex 值。
|
double |
getFloat64LE(int offset)
读取 8 字节的 double(小端字节序),该方法不会更新 readerIndex 值。
|
short |
getInt16(int offset)
读取 2 字节的 short(大端字节序),该方法不会更新 readerIndex 值。
|
short |
getInt16LE(int offset)
读取 2 字节的 short(小端字节序),该方法不会更新 readerIndex 值。
|
int |
getInt24(int offset)
读取 3 字节的 int(大端字节序),该方法不会更新 readerIndex 值。
|
int |
getInt24LE(int offset)
读取 3 字节的 int(小端字节序),该方法不会更新 readerIndex 值。
|
int |
getInt32(int offset)
读取 4 字节的 int(大端字节序),该方法不会更新 readerIndex 值。
|
int |
getInt32LE(int offset)
读取 4 字节的 int(小端字节序),该方法不会更新 readerIndex 值。
|
long |
getInt64(int offset)
读取 8 字节的 long(大端字节序),该方法不会更新 readerIndex 值。
|
long |
getInt64LE(int offset)
读取 8 字节的 long(小端字节序),该方法不会更新 readerIndex 值。
|
String |
getString(int offset,
int len,
Charset charset)
从 offset 开始读取 len 个字节,并构造一个 String,该方法不会更新 readerIndex 值。
|
int |
getUInt16(int offset)
读取 2 字节的 无符号 sort(小端字节序),该方法不会更新 readerIndex 值。
|
int |
getUInt16LE(int offset)
读取 2 字节的 无符号 sort(小端字节序),该方法不会更新 readerIndex 值。
|
int |
getUInt24(int offset)
读取 3 字节的 无符号 int(小端字节序),该方法不会更新 readerIndex 值。
|
int |
getUInt24LE(int offset)
读取 3 字节的 无符号 int(小端字节序),该方法不会更新 readerIndex 值。
|
long |
getUInt32(int offset)
读取 4 字节的 无符号 int(小端字节序),该方法不会更新 readerIndex 值。
|
long |
getUInt32LE(int offset)
读取 4 字节的 无符号 int(小端字节序),该方法不会更新 readerIndex 值。
|
short |
getUInt8(int offset)
读取 1 字节的 byte 返回 0~255 之间的一个数(小端字节序),该方法不会更新 readerIndex 值。
|
boolean |
hasReadable()
可以进行读
|
boolean |
hasWritable()
可以进行写入
|
boolean |
isDirect()
ByteBuf 是否为堆外方式
|
boolean |
isFree()
是否已经释放
|
boolean |
isOpen() |
ByteBuf |
markReader()
Marks the current
readerIndex in this buffer. |
ByteBuf |
markWriter()
Marks the current
writerIndex in this buffer. |
ByteOrder |
order()
字节序
|
ByteBuf |
order(ByteOrder newOrder)
设置字节序
|
int |
read(ByteBuf dst)
use copy to dst
|
int |
read(ByteBuffer dst)
use copy to dst
|
int |
read(ByteBuf dst,
int len)
use copy to dst
|
int |
readableBytes()
Returns the number of readable bytes which is equal to
(this.markedWriterIndex - this.readerIndex). |
byte |
readByte()
读取 1 字节。
|
int |
readBytes()
Returns the number of read bytes which is equal to
(readIndex - readMark). |
int |
readBytes(byte[] b)
读取一定数量的字节,并将它们存储到缓冲区数组 b 中。
|
int |
readBytes(byte[] b,
int off,
int len)
读取 len 数量的字节,并将它们存储到 off 位置开始的缓冲区数组 b 中。
|
int |
readerIndex()
Returns the
readerIndex of this buffer. |
String |
readExpect(char expect,
Charset charset)
从当前位置开始读取,直到遇到第一个 expect 字符串读完。
|
String |
readExpect(String expect,
Charset charset)
从当前位置开始读取,直到遇到第一个 expect 字符串读完。
|
String |
readExpectLast(char expect,
Charset charset)
从当前位置开始读取,直到遇到最后一个 expect 字符串读完。
|
String |
readExpectLast(String expect,
Charset charset)
从当前位置开始读取,直到遇到最后一个 expect 字符串读完。
|
float |
readFloat32()
读取 4 字节的 float(大端字节序),读取后 readerIndex 会增加 4。
|
float |
readFloat32LE()
读取 4 字节的 float(小端字节序),读取后 readerIndex 会增加 4。
|
double |
readFloat64()
读取 8 字节的 double(大端字节序),读取后 readerIndex 会增加 8。
|
double |
readFloat64LE()
读取 8 字节的 double(小端字节序),读取后 readerIndex 会增加 8。
|
short |
readInt16()
读取 2 字节的 short(大端字节序),读取后 readerIndex 会增加 2。
|
short |
readInt16LE()
读取 2 字节的 short(小端字节序),读取后 readerIndex 会增加 2。
|
int |
readInt24()
读取 3 字节的 int(大端字节序),读取后 readerIndex 会增加 3。
|
int |
readInt24LE()
读取 3 字节的 int(小端字节序),读取后 readerIndex 会增加 3。
|
int |
readInt32()
读取 4 字节的 int(大端字节序),读取后 readerIndex 会增加 4。
|
int |
readInt32LE()
读取 4 字节的 int(小端字节序),读取后 readerIndex 会增加 4。
|
long |
readInt64()
读取 8 字节的 long(大端字节序),读取后 readerIndex 会增加 8。
|
long |
readInt64LE()
读取 8 字节的 long(小端字节序),读取后 readerIndex 会增加 8。
|
String |
readLine()
读一整行
|
String |
readLine(Charset charset)
读一整行
|
String |
readString(int len,
Charset charset)
读取 len 字节并将其构造成 String,读取后 readerIndex 会增加 len。
|
int |
readUInt16()
读取 2 字节的 无符号 sort(大端字节序),读取后 readerIndex 会增加 2。
|
int |
readUInt16LE()
读取 2 字节的 无符号 sort(小端字节序),读取后 readerIndex 会增加 2。
|
int |
readUInt24()
读取 3 字节的 无符号 int(大端字节序),读取后 readerIndex 会增加 3。
|
int |
readUInt24LE()
读取 3 字节的 无符号 int(小端字节序),读取后 readerIndex 会增加 3。
|
long |
readUInt32()
读取 4 字节的 无符号 int(大端字节序),读取后 readerIndex 会增加 4。
|
long |
readUInt32LE()
读取 4 字节的 无符号 int(小端字节序),读取后 readerIndex 会增加 4。
|
short |
readUInt8()
读取 1 字节的 byte 返回 0~255 之间的一个数(大端字节序),读取后 readerIndex 会增加 1。
|
ByteBuf |
resetReader()
Repositions the current
readerIndex to the marked
readerIndex in this buffer. |
ByteBuf |
resetWriter()
Repositions the current
writerIndex to the marked
writerIndex in this buffer. |
void |
setByte(int offset,
byte n)
在 offset 偏移量的位置上向后覆盖方式写入 1 字节的 byte,该方法不会更新 writerIndex 值。
|
void |
setBytes(int offset,
byte[] b)
在 offset 偏移量的位置上向后覆盖方式写入 b 数组的数据,该方法不会更新 writerIndex 值。
|
void |
setBytes(int offset,
byte[] b,
int off,
int len)
在 offset 偏移量的位置上向后覆盖方式写入 b 数组的数据,该方法不会更新 writerIndex 值。
|
void |
setFloat32(int offset,
float n)
在 offset 偏移量的位置上向后覆盖方式写入 4 字节长度的 float(大端字节序),该方法不会更新 writerIndex 值。
|
void |
setFloat32LE(int offset,
float n)
在 offset 偏移量的位置上向后覆盖方式写入 4 字节长度的 float(小端字节序),该方法不会更新 writerIndex 值。
|
void |
setFloat64(int offset,
double n)
在 offset 偏移量的位置上向后覆盖方式写入 8 字节长度的 float(大端字节序),该方法不会更新 writerIndex 值。
|
void |
setFloat64LE(int offset,
double n)
在 offset 偏移量的位置上向后覆盖方式写入 8 字节长度的 float(小端字节序),该方法不会更新 writerIndex 值。
|
void |
setInt16(int offset,
short n)
在 offset 偏移量的位置上向后覆盖方式写入 2 字节长度的 sort(大端字节序),该方法不会更新 writerIndex 值。
|
void |
setInt16LE(int offset,
short n)
在 offset 偏移量的位置上向后覆盖方式写入 2 字节长度的 sort(小端字节序),该方法不会更新 writerIndex 值。
|
void |
setInt24(int offset,
int n)
在 offset 偏移量的位置上向后覆盖方式写入 3 字节长度的 int(大端字节序),该方法不会更新 writerIndex 值。
|
void |
setInt24LE(int offset,
int n)
在 offset 偏移量的位置上向后覆盖方式写入 3 字节长度的 int(小端字节序),该方法不会更新 writerIndex 值。
|
void |
setInt32(int offset,
int n)
在 offset 偏移量的位置上向后覆盖方式写入 4 字节长度的 int(大端字节序),该方法不会更新 writerIndex 值。
|
void |
setInt32LE(int offset,
int n)
在 offset 偏移量的位置上向后覆盖方式写入 4 字节长度的 int(小端字节序),该方法不会更新 writerIndex 值。
|
void |
setInt64(int offset,
long n)
在 offset 偏移量的位置上向后覆盖方式写入 8 字节长度的 long(大端字节序),该方法不会更新 writerIndex 值。
|
void |
setInt64LE(int offset,
long n)
在 offset 偏移量的位置上向后覆盖方式写入 8 字节长度的 long(小端字节序),该方法不会更新 writerIndex 值。
|
int |
setString(int offset,
String string,
Charset charset)
在 offset 偏移量的位置上向后覆盖方式写入字符串,字符串会通过 str.getBytes(charset) 方式转换为字节数组,该方法不会更新 writerIndex 值。
|
ByteBuf |
skipReadableBytes(int length) |
ByteBuf |
skipWritableBytes(int length) |
int |
writableBytes()
Returns the number of writable bytes which is equal to
(maxCapacity - (writerIndex - readMark)). |
int |
write(ByteBuf src)
use copy form src ByteBuffer
|
int |
write(ByteBuffer src)
use copy form src ByteBuffer
|
void |
writeByte(byte n)
写入 1 字节的 byte,写入后 writerIndex 会 + 1。
|
void |
writeBytes(byte[] b)
数据写入,写入后 writerIndex 会增加 b.length。
|
void |
writeBytes(byte[] b,
int off,
int len)
数据写入,写入后 writerIndex 会增加 len。
|
int |
writedBytes()
Returns the number of writed bytes which is equal to
(writerIndex - writerMark). |
void |
writeFloat32(float n)
写入 4 字节的 float(大端字节序),写入后 writerIndex 会 + 4。
|
void |
writeFloat32LE(float n)
写入 4 字节的 float(小端字节序),写入后 writerIndex 会 + 4。
|
void |
writeFloat64(double n)
写入 8 字节的 double(大端字节序),写入后 writerIndex 会 + 8。
|
void |
writeFloat64LE(double n)
写入 8 字节的 double(小端字节序),写入后 writerIndex 会 + 8。
|
void |
writeInt16(short n)
写入 2 字节的 sort(大端字节序),写入后 writerIndex 会 + 2。
|
void |
writeInt16LE(short n)
写入 2 字节的 sort(小端字节序),写入后 writerIndex 会 + 2。
|
void |
writeInt24(int n)
写入 3 字节的 int(大端字节序),写入后 writerIndex 会 + 3。
|
void |
writeInt24LE(int n)
写入 3 字节的 int(小端字节序),写入后 writerIndex 会 + 3。
|
void |
writeInt32(int n)
写入 4 字节的 int(大端字节序),写入后 writerIndex 会 + 4。
|
void |
writeInt32LE(int n)
写入 4 字节的 int(小端字节序),写入后 writerIndex 会 + 4。
|
void |
writeInt64(long n)
写入 8 字节的 long(大端字节序),写入后 writerIndex 会 + 8。
|
void |
writeInt64LE(long n)
写入 8 字节的 int(小端字节序),写入后 writerIndex 会 + 8。
|
int |
writerIndex()
Returns the
writerIndex of this buffer. |
int |
writeString(String string,
Charset charset)
字符串会以 str.getBytes(charset) 方式转换为字节数组并写入缓存。
|
void |
writeUInt32(long n)
写入 4 字节的无符号 int(大端字节序),写入后 writerIndex 会 + 4。
|
void |
writeUInt32LE(long n)
写入 4 字节的无符号 int(小端字节序),写入后 writerIndex 会 + 4。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, expectLine, hasLineprotected final ByteBuf byteBuf
public ByteBufAdapter(ByteBuf byteBuf)
public ByteBufAllocator alloc()
ByteBufByteBufAllocator which created this buffer.public int readerIndex()
ByteBufreaderIndex of this buffer.readerIndex 在接口中 ByteBufpublic int writerIndex()
ByteBufwriterIndex of this buffer.writerIndex 在接口中 ByteBufpublic ByteBuffer asByteBuffer()
ByteBufasByteBuffer 在接口中 ByteBufpublic int readableBytes()
ByteBuf(this.markedWriterIndex - this.readerIndex).readableBytes 在接口中 ByteBufpublic int readBytes()
ByteBuf(readIndex - readMark).public boolean hasReadable()
ByteBufhasReadable 在接口中 ByteBufpublic int writableBytes()
ByteBuf(maxCapacity - (writerIndex - readMark)).writableBytes 在接口中 ByteBufpublic int writedBytes()
ByteBuf(writerIndex - writerMark).writedBytes 在接口中 ByteBufpublic boolean hasWritable()
ByteBufhasWritable 在接口中 ByteBufpublic ByteBuf markReader()
ByteBufreaderIndex in this buffer.
You can reposition the current readerIndex to the marked readerIndex by calling ByteBuf.resetReader().
The initial value of the marked readerIndex is 0.markReader 在接口中 ByteBufpublic ByteBuf markWriter()
ByteBufwriterIndex in this buffer.
You can reposition the current writerIndex to the marked writerIndex by calling ByteBuf.resetWriter().
The initial value of the marked writerIndex is 0.markWriter 在接口中 ByteBufpublic ByteBuf flush() throws IOException
ByteBufflush 在接口中 ByteBufIOExceptionpublic ByteBuf resetReader()
ByteBufreaderIndex to the marked
readerIndex in this buffer.resetReader 在接口中 ByteBufpublic ByteBuf resetWriter()
ByteBufwriterIndex to the marked
writerIndex in this buffer.resetWriter 在接口中 ByteBufpublic ByteBuf skipReadableBytes(int length)
skipReadableBytes 在接口中 ByteBufpublic ByteBuf skipWritableBytes(int length)
skipWritableBytes 在接口中 ByteBufpublic void writeByte(byte n)
ByteBufIndexOutOfBoundsException 异常public void writeBytes(byte[] b)
ByteBufIndexOutOfBoundsException 异常writeBytes 在接口中 ByteBufpublic void writeBytes(byte[] b,
int off,
int len)
ByteBufIndexOutOfBoundsException 异常writeBytes 在接口中 ByteBufpublic void writeInt16(short n)
ByteBufIndexOutOfBoundsException 异常writeInt16 在接口中 ByteBufpublic void writeInt24(int n)
ByteBufIndexOutOfBoundsException 异常writeInt24 在接口中 ByteBufpublic void writeInt32(int n)
ByteBufIndexOutOfBoundsException 异常writeInt32 在接口中 ByteBufpublic void writeUInt32(long n)
ByteBufIndexOutOfBoundsException 异常writeUInt32 在接口中 ByteBufpublic void writeInt64(long n)
ByteBufIndexOutOfBoundsException 异常writeInt64 在接口中 ByteBufpublic void writeFloat32(float n)
ByteBufIndexOutOfBoundsException 异常writeFloat32 在接口中 ByteBufpublic void writeFloat64(double n)
ByteBufIndexOutOfBoundsException 异常writeFloat64 在接口中 ByteBufpublic void writeInt16LE(short n)
ByteBufIndexOutOfBoundsException 异常writeInt16LE 在接口中 ByteBufpublic void writeInt24LE(int n)
ByteBufIndexOutOfBoundsException 异常writeInt24LE 在接口中 ByteBufpublic void writeInt32LE(int n)
ByteBufIndexOutOfBoundsException 异常writeInt32LE 在接口中 ByteBufpublic void writeUInt32LE(long n)
ByteBufIndexOutOfBoundsException 异常writeUInt32LE 在接口中 ByteBufpublic void writeInt64LE(long n)
ByteBufIndexOutOfBoundsException 异常writeInt64LE 在接口中 ByteBufpublic void writeFloat32LE(float n)
ByteBufIndexOutOfBoundsException 异常writeFloat32LE 在接口中 ByteBufpublic void writeFloat64LE(double n)
ByteBufIndexOutOfBoundsException 异常writeFloat64LE 在接口中 ByteBufpublic int write(ByteBuffer src)
ByteBufwrite 在接口中 WritableByteChannelwrite 在接口中 ByteBufpublic int writeString(String string, Charset charset)
ByteBufIndexOutOfBoundsException 异常writeString 在接口中 ByteBufpublic void setByte(int offset,
byte n)
ByteBufIndexOutOfBoundsException 异常public void setBytes(int offset,
byte[] b)
ByteBufIndexOutOfBoundsException 异常public void setBytes(int offset,
byte[] b,
int off,
int len)
ByteBufIndexOutOfBoundsException 异常public void setInt16(int offset,
short n)
ByteBufIndexOutOfBoundsException 异常public void setInt24(int offset,
int n)
ByteBufIndexOutOfBoundsException 异常public void setInt32(int offset,
int n)
ByteBufIndexOutOfBoundsException 异常public void setInt64(int offset,
long n)
ByteBufIndexOutOfBoundsException 异常public void setFloat32(int offset,
float n)
ByteBufIndexOutOfBoundsException 异常setFloat32 在接口中 ByteBufpublic void setFloat64(int offset,
double n)
ByteBufIndexOutOfBoundsException 异常setFloat64 在接口中 ByteBufpublic void setInt16LE(int offset,
short n)
ByteBufIndexOutOfBoundsException 异常setInt16LE 在接口中 ByteBufpublic void setInt24LE(int offset,
int n)
ByteBufIndexOutOfBoundsException 异常setInt24LE 在接口中 ByteBufpublic void setInt32LE(int offset,
int n)
ByteBufIndexOutOfBoundsException 异常setInt32LE 在接口中 ByteBufpublic void setInt64LE(int offset,
long n)
ByteBufIndexOutOfBoundsException 异常setInt64LE 在接口中 ByteBufpublic void setFloat32LE(int offset,
float n)
ByteBufIndexOutOfBoundsException 异常setFloat32LE 在接口中 ByteBufpublic void setFloat64LE(int offset,
double n)
ByteBufIndexOutOfBoundsException 异常setFloat64LE 在接口中 ByteBufpublic int setString(int offset,
String string,
Charset charset)
ByteBufIndexOutOfBoundsException 异常public byte readByte()
ByteBufIndexOutOfBoundsException 异常public int readBytes(byte[] b)
ByteBufpublic int readBytes(byte[] b,
int off,
int len)
ByteBufpublic short readInt16()
ByteBufIndexOutOfBoundsException 异常public int readInt24()
ByteBufIndexOutOfBoundsException 异常public int readInt32()
ByteBufIndexOutOfBoundsException 异常public long readInt64()
ByteBufIndexOutOfBoundsException 异常public float readFloat32()
ByteBufIndexOutOfBoundsException 异常readFloat32 在接口中 ByteBufpublic double readFloat64()
ByteBufIndexOutOfBoundsException 异常readFloat64 在接口中 ByteBufpublic short readInt16LE()
ByteBufIndexOutOfBoundsException 异常readInt16LE 在接口中 ByteBufpublic int readInt24LE()
ByteBufIndexOutOfBoundsException 异常readInt24LE 在接口中 ByteBufpublic int readInt32LE()
ByteBufIndexOutOfBoundsException 异常readInt32LE 在接口中 ByteBufpublic long readInt64LE()
ByteBufIndexOutOfBoundsException 异常readInt64LE 在接口中 ByteBufpublic float readFloat32LE()
ByteBufIndexOutOfBoundsException 异常readFloat32LE 在接口中 ByteBufpublic double readFloat64LE()
ByteBufIndexOutOfBoundsException 异常readFloat64LE 在接口中 ByteBufpublic int read(ByteBuffer dst)
ByteBufread 在接口中 ReadableByteChannelread 在接口中 ByteBufpublic String readString(int len, Charset charset)
ByteBufIndexOutOfBoundsException 异常readString 在接口中 ByteBufpublic byte getByte(int offset)
ByteBufIndexOutOfBoundsException 异常public int getBytes(int offset,
byte[] b)
ByteBufpublic int getBytes(int offset,
byte[] b,
int off,
int len)
ByteBufpublic short getInt16(int offset)
ByteBufIndexOutOfBoundsException 异常public int getInt24(int offset)
ByteBufIndexOutOfBoundsException 异常public int getInt32(int offset)
ByteBufIndexOutOfBoundsException 异常public long getInt64(int offset)
ByteBufIndexOutOfBoundsException 异常public float getFloat32(int offset)
ByteBufIndexOutOfBoundsException 异常getFloat32 在接口中 ByteBufpublic double getFloat64(int offset)
ByteBufIndexOutOfBoundsException 异常getFloat64 在接口中 ByteBufpublic short getInt16LE(int offset)
ByteBufIndexOutOfBoundsException 异常getInt16LE 在接口中 ByteBufpublic int getInt24LE(int offset)
ByteBufIndexOutOfBoundsException 异常getInt24LE 在接口中 ByteBufpublic int getInt32LE(int offset)
ByteBufIndexOutOfBoundsException 异常getInt32LE 在接口中 ByteBufpublic long getInt64LE(int offset)
ByteBufIndexOutOfBoundsException 异常getInt64LE 在接口中 ByteBufpublic float getFloat32LE(int offset)
ByteBufIndexOutOfBoundsException 异常getFloat32LE 在接口中 ByteBufpublic double getFloat64LE(int offset)
ByteBufIndexOutOfBoundsException 异常getFloat64LE 在接口中 ByteBufpublic String getString(int offset, int len, Charset charset)
ByteBufIndexOutOfBoundsException 异常public short readUInt8()
ByteBufIndexOutOfBoundsException 异常public int readUInt16()
ByteBufIndexOutOfBoundsException 异常readUInt16 在接口中 ByteBufpublic int readUInt24()
ByteBufIndexOutOfBoundsException 异常readUInt24 在接口中 ByteBufpublic long readUInt32()
ByteBufIndexOutOfBoundsException 异常readUInt32 在接口中 ByteBufpublic int readUInt16LE()
ByteBufIndexOutOfBoundsException 异常readUInt16LE 在接口中 ByteBufpublic int readUInt24LE()
ByteBufIndexOutOfBoundsException 异常readUInt24LE 在接口中 ByteBufpublic long readUInt32LE()
ByteBufIndexOutOfBoundsException 异常readUInt32LE 在接口中 ByteBufpublic short getUInt8(int offset)
ByteBufIndexOutOfBoundsException 异常public int getUInt16(int offset)
ByteBufIndexOutOfBoundsException 异常public int getUInt24(int offset)
ByteBufIndexOutOfBoundsException 异常public long getUInt32(int offset)
ByteBufIndexOutOfBoundsException 异常public int getUInt16LE(int offset)
ByteBufIndexOutOfBoundsException 异常getUInt16LE 在接口中 ByteBufpublic int getUInt24LE(int offset)
ByteBufIndexOutOfBoundsException 异常getUInt24LE 在接口中 ByteBufpublic long getUInt32LE(int offset)
ByteBufIndexOutOfBoundsException 异常getUInt32LE 在接口中 ByteBufpublic int expect(String expect, Charset charset)
ByteBufpublic int expect(char expect,
Charset charset)
ByteBufpublic String readExpect(String expect, Charset charset)
ByteBufreadExpect 在接口中 ByteBufpublic String readExpect(char expect, Charset charset)
ByteBufreadExpect 在接口中 ByteBufpublic int expectLast(String expect, Charset charset)
ByteBufexpectLast 在接口中 ByteBufpublic int expectLast(char expect,
Charset charset)
ByteBufexpectLast 在接口中 ByteBufpublic String readExpectLast(String expect, Charset charset)
ByteBufreadExpectLast 在接口中 ByteBufpublic String readExpectLast(char expect, Charset charset)
ByteBufreadExpectLast 在接口中 ByteBufpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在接口中 Channelclose 在接口中 ByteBufIOExceptionCopyright © 2022–2024. All rights reserved.