Package org.apache.bookkeeper.util
Class ByteBufVisitor.GetBytesCallbackByteBuf<T>
- java.lang.Object
-
- io.netty.buffer.ByteBuf
-
- org.apache.bookkeeper.util.ByteBufVisitor.GetBytesCallbackByteBuf<T>
-
- All Implemented Interfaces:
io.netty.buffer.ByteBufConvertible
,io.netty.util.ReferenceCounted
,java.lang.Comparable<io.netty.buffer.ByteBuf>
- Enclosing class:
- ByteBufVisitor
static class ByteBufVisitor.GetBytesCallbackByteBuf<T> extends io.netty.buffer.ByteBuf
A ByteBuf implementation that can be used as the destination buffer for aByteBuf.getBytes(int, ByteBuf)
for visiting the wrapped child buffers.
-
-
Constructor Summary
Constructors Constructor Description GetBytesCallbackByteBuf(org.apache.bookkeeper.util.ByteBufVisitor.InternalContext<T> internalContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.buffer.ByteBufAllocator
alloc()
byte[]
array()
int
arrayOffset()
io.netty.buffer.ByteBuf
asReadOnly()
int
bytesBefore(byte value)
int
bytesBefore(int length, byte value)
int
bytesBefore(int index, int length, byte value)
int
capacity()
io.netty.buffer.ByteBuf
capacity(int newCapacity)
io.netty.buffer.ByteBuf
clear()
int
compareTo(io.netty.buffer.ByteBuf buffer)
io.netty.buffer.ByteBuf
copy()
io.netty.buffer.ByteBuf
copy(int index, int length)
io.netty.buffer.ByteBuf
discardReadBytes()
io.netty.buffer.ByteBuf
discardSomeReadBytes()
io.netty.buffer.ByteBuf
duplicate()
io.netty.buffer.ByteBuf
ensureWritable(int minWritableBytes)
int
ensureWritable(int minWritableBytes, boolean force)
boolean
equals(java.lang.Object obj)
int
forEachByte(int index, int length, io.netty.util.ByteProcessor processor)
int
forEachByte(io.netty.util.ByteProcessor processor)
int
forEachByteDesc(int index, int length, io.netty.util.ByteProcessor processor)
int
forEachByteDesc(io.netty.util.ByteProcessor processor)
boolean
getBoolean(int index)
byte
getByte(int index)
io.netty.buffer.ByteBuf
getBytes(int index, byte[] dst)
io.netty.buffer.ByteBuf
getBytes(int index, byte[] dst, int dstIndex, int length)
io.netty.buffer.ByteBuf
getBytes(int index, io.netty.buffer.ByteBuf dst)
io.netty.buffer.ByteBuf
getBytes(int index, io.netty.buffer.ByteBuf dst, int length)
io.netty.buffer.ByteBuf
getBytes(int index, io.netty.buffer.ByteBuf dst, int dstIndex, int length)
io.netty.buffer.ByteBuf
getBytes(int index, java.io.OutputStream out, int length)
io.netty.buffer.ByteBuf
getBytes(int index, java.nio.ByteBuffer dst)
int
getBytes(int index, java.nio.channels.FileChannel out, long position, int length)
int
getBytes(int index, java.nio.channels.GatheringByteChannel out, int length)
char
getChar(int index)
java.lang.CharSequence
getCharSequence(int index, int length, java.nio.charset.Charset charset)
double
getDouble(int index)
float
getFloat(int index)
int
getInt(int index)
int
getIntLE(int index)
long
getLong(int index)
long
getLongLE(int index)
int
getMedium(int index)
int
getMediumLE(int index)
short
getShort(int index)
short
getShortLE(int index)
short
getUnsignedByte(int index)
long
getUnsignedInt(int index)
long
getUnsignedIntLE(int index)
int
getUnsignedMedium(int index)
int
getUnsignedMediumLE(int index)
int
getUnsignedShort(int index)
int
getUnsignedShortLE(int index)
boolean
hasArray()
int
hashCode()
boolean
hasMemoryAddress()
int
indexOf(int fromIndex, int toIndex, byte value)
java.nio.ByteBuffer
internalNioBuffer(int index, int length)
boolean
isDirect()
boolean
isReadable()
boolean
isReadable(int size)
boolean
isReadOnly()
boolean
isWritable()
boolean
isWritable(int size)
io.netty.buffer.ByteBuf
markReaderIndex()
io.netty.buffer.ByteBuf
markWriterIndex()
int
maxCapacity()
int
maxWritableBytes()
long
memoryAddress()
java.nio.ByteBuffer
nioBuffer()
java.nio.ByteBuffer
nioBuffer(int index, int length)
int
nioBufferCount()
java.nio.ByteBuffer[]
nioBuffers()
java.nio.ByteBuffer[]
nioBuffers(int index, int length)
java.nio.ByteOrder
order()
io.netty.buffer.ByteBuf
order(java.nio.ByteOrder endianness)
int
readableBytes()
boolean
readBoolean()
byte
readByte()
io.netty.buffer.ByteBuf
readBytes(byte[] dst)
io.netty.buffer.ByteBuf
readBytes(byte[] dst, int dstIndex, int length)
io.netty.buffer.ByteBuf
readBytes(int length)
io.netty.buffer.ByteBuf
readBytes(io.netty.buffer.ByteBuf dst)
io.netty.buffer.ByteBuf
readBytes(io.netty.buffer.ByteBuf dst, int length)
io.netty.buffer.ByteBuf
readBytes(io.netty.buffer.ByteBuf dst, int dstIndex, int length)
io.netty.buffer.ByteBuf
readBytes(java.io.OutputStream out, int length)
io.netty.buffer.ByteBuf
readBytes(java.nio.ByteBuffer dst)
int
readBytes(java.nio.channels.FileChannel out, long position, int length)
int
readBytes(java.nio.channels.GatheringByteChannel out, int length)
char
readChar()
java.lang.CharSequence
readCharSequence(int length, java.nio.charset.Charset charset)
double
readDouble()
int
readerIndex()
io.netty.buffer.ByteBuf
readerIndex(int readerIndex)
float
readFloat()
int
readInt()
int
readIntLE()
long
readLong()
long
readLongLE()
int
readMedium()
int
readMediumLE()
io.netty.buffer.ByteBuf
readRetainedSlice(int length)
short
readShort()
short
readShortLE()
io.netty.buffer.ByteBuf
readSlice(int length)
short
readUnsignedByte()
long
readUnsignedInt()
long
readUnsignedIntLE()
int
readUnsignedMedium()
int
readUnsignedMediumLE()
int
readUnsignedShort()
int
readUnsignedShortLE()
int
refCnt()
boolean
release()
boolean
release(int decrement)
io.netty.buffer.ByteBuf
resetReaderIndex()
io.netty.buffer.ByteBuf
resetWriterIndex()
io.netty.buffer.ByteBuf
retain()
io.netty.buffer.ByteBuf
retain(int increment)
io.netty.buffer.ByteBuf
retainedDuplicate()
io.netty.buffer.ByteBuf
retainedSlice()
io.netty.buffer.ByteBuf
retainedSlice(int index, int length)
io.netty.buffer.ByteBuf
setBoolean(int index, boolean value)
io.netty.buffer.ByteBuf
setByte(int index, int value)
io.netty.buffer.ByteBuf
setBytes(int index, byte[] src)
io.netty.buffer.ByteBuf
setBytes(int index, byte[] src, int srcIndex, int length)
io.netty.buffer.ByteBuf
setBytes(int index, io.netty.buffer.ByteBuf src)
io.netty.buffer.ByteBuf
setBytes(int index, io.netty.buffer.ByteBuf src, int length)
io.netty.buffer.ByteBuf
setBytes(int index, io.netty.buffer.ByteBuf src, int srcIndex, int length)
int
setBytes(int index, java.io.InputStream in, int length)
io.netty.buffer.ByteBuf
setBytes(int index, java.nio.ByteBuffer src)
int
setBytes(int index, java.nio.channels.FileChannel in, long position, int length)
int
setBytes(int index, java.nio.channels.ScatteringByteChannel in, int length)
io.netty.buffer.ByteBuf
setChar(int index, int value)
int
setCharSequence(int index, java.lang.CharSequence sequence, java.nio.charset.Charset charset)
io.netty.buffer.ByteBuf
setDouble(int index, double value)
io.netty.buffer.ByteBuf
setFloat(int index, float value)
io.netty.buffer.ByteBuf
setIndex(int readerIndex, int writerIndex)
io.netty.buffer.ByteBuf
setInt(int index, int value)
io.netty.buffer.ByteBuf
setIntLE(int index, int value)
io.netty.buffer.ByteBuf
setLong(int index, long value)
io.netty.buffer.ByteBuf
setLongLE(int index, long value)
io.netty.buffer.ByteBuf
setMedium(int index, int value)
io.netty.buffer.ByteBuf
setMediumLE(int index, int value)
io.netty.buffer.ByteBuf
setShort(int index, int value)
io.netty.buffer.ByteBuf
setShortLE(int index, int value)
io.netty.buffer.ByteBuf
setZero(int index, int length)
io.netty.buffer.ByteBuf
skipBytes(int length)
io.netty.buffer.ByteBuf
slice()
io.netty.buffer.ByteBuf
slice(int index, int length)
java.lang.String
toString()
java.lang.String
toString(int index, int length, java.nio.charset.Charset charset)
java.lang.String
toString(java.nio.charset.Charset charset)
io.netty.buffer.ByteBuf
touch()
io.netty.buffer.ByteBuf
touch(java.lang.Object hint)
io.netty.buffer.ByteBuf
unwrap()
int
writableBytes()
io.netty.buffer.ByteBuf
writeBoolean(boolean value)
io.netty.buffer.ByteBuf
writeByte(int value)
io.netty.buffer.ByteBuf
writeBytes(byte[] src)
io.netty.buffer.ByteBuf
writeBytes(byte[] src, int srcIndex, int length)
io.netty.buffer.ByteBuf
writeBytes(io.netty.buffer.ByteBuf src)
io.netty.buffer.ByteBuf
writeBytes(io.netty.buffer.ByteBuf src, int length)
io.netty.buffer.ByteBuf
writeBytes(io.netty.buffer.ByteBuf src, int srcIndex, int length)
int
writeBytes(java.io.InputStream in, int length)
io.netty.buffer.ByteBuf
writeBytes(java.nio.ByteBuffer src)
int
writeBytes(java.nio.channels.FileChannel in, long position, int length)
int
writeBytes(java.nio.channels.ScatteringByteChannel in, int length)
io.netty.buffer.ByteBuf
writeChar(int value)
int
writeCharSequence(java.lang.CharSequence sequence, java.nio.charset.Charset charset)
io.netty.buffer.ByteBuf
writeDouble(double value)
io.netty.buffer.ByteBuf
writeFloat(float value)
io.netty.buffer.ByteBuf
writeInt(int value)
io.netty.buffer.ByteBuf
writeIntLE(int value)
io.netty.buffer.ByteBuf
writeLong(long value)
io.netty.buffer.ByteBuf
writeLongLE(long value)
io.netty.buffer.ByteBuf
writeMedium(int value)
io.netty.buffer.ByteBuf
writeMediumLE(int value)
int
writerIndex()
io.netty.buffer.ByteBuf
writerIndex(int writerIndex)
io.netty.buffer.ByteBuf
writeShort(int value)
io.netty.buffer.ByteBuf
writeShortLE(int value)
io.netty.buffer.ByteBuf
writeZero(int length)
-
-
-
Constructor Detail
-
GetBytesCallbackByteBuf
GetBytesCallbackByteBuf(org.apache.bookkeeper.util.ByteBufVisitor.InternalContext<T> internalContext)
-
-
Method Detail
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int index, io.netty.buffer.ByteBuf src, int srcIndex, int length)
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int index, byte[] src, int srcIndex, int length)
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
hasArray
public boolean hasArray()
- Specified by:
hasArray
in classio.netty.buffer.ByteBuf
-
hasMemoryAddress
public boolean hasMemoryAddress()
- Specified by:
hasMemoryAddress
in classio.netty.buffer.ByteBuf
-
nioBufferCount
public int nioBufferCount()
- Specified by:
nioBufferCount
in classio.netty.buffer.ByteBuf
-
capacity
public int capacity()
- Specified by:
capacity
in classio.netty.buffer.ByteBuf
-
capacity
public io.netty.buffer.ByteBuf capacity(int newCapacity)
- Specified by:
capacity
in classio.netty.buffer.ByteBuf
-
maxCapacity
public int maxCapacity()
- Specified by:
maxCapacity
in classio.netty.buffer.ByteBuf
-
alloc
public io.netty.buffer.ByteBufAllocator alloc()
- Specified by:
alloc
in classio.netty.buffer.ByteBuf
-
order
public java.nio.ByteOrder order()
- Specified by:
order
in classio.netty.buffer.ByteBuf
-
order
public io.netty.buffer.ByteBuf order(java.nio.ByteOrder endianness)
- Specified by:
order
in classio.netty.buffer.ByteBuf
-
unwrap
public io.netty.buffer.ByteBuf unwrap()
- Specified by:
unwrap
in classio.netty.buffer.ByteBuf
-
isDirect
public boolean isDirect()
- Specified by:
isDirect
in classio.netty.buffer.ByteBuf
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in classio.netty.buffer.ByteBuf
-
asReadOnly
public io.netty.buffer.ByteBuf asReadOnly()
- Specified by:
asReadOnly
in classio.netty.buffer.ByteBuf
-
readerIndex
public int readerIndex()
- Specified by:
readerIndex
in classio.netty.buffer.ByteBuf
-
readerIndex
public io.netty.buffer.ByteBuf readerIndex(int readerIndex)
- Specified by:
readerIndex
in classio.netty.buffer.ByteBuf
-
writerIndex
public int writerIndex()
- Specified by:
writerIndex
in classio.netty.buffer.ByteBuf
-
writerIndex
public io.netty.buffer.ByteBuf writerIndex(int writerIndex)
- Specified by:
writerIndex
in classio.netty.buffer.ByteBuf
-
setIndex
public io.netty.buffer.ByteBuf setIndex(int readerIndex, int writerIndex)
- Specified by:
setIndex
in classio.netty.buffer.ByteBuf
-
readableBytes
public int readableBytes()
- Specified by:
readableBytes
in classio.netty.buffer.ByteBuf
-
writableBytes
public int writableBytes()
- Specified by:
writableBytes
in classio.netty.buffer.ByteBuf
-
maxWritableBytes
public int maxWritableBytes()
- Specified by:
maxWritableBytes
in classio.netty.buffer.ByteBuf
-
isReadable
public boolean isReadable()
- Specified by:
isReadable
in classio.netty.buffer.ByteBuf
-
isReadable
public boolean isReadable(int size)
- Specified by:
isReadable
in classio.netty.buffer.ByteBuf
-
isWritable
public boolean isWritable()
- Specified by:
isWritable
in classio.netty.buffer.ByteBuf
-
isWritable
public boolean isWritable(int size)
- Specified by:
isWritable
in classio.netty.buffer.ByteBuf
-
clear
public io.netty.buffer.ByteBuf clear()
- Specified by:
clear
in classio.netty.buffer.ByteBuf
-
markReaderIndex
public io.netty.buffer.ByteBuf markReaderIndex()
- Specified by:
markReaderIndex
in classio.netty.buffer.ByteBuf
-
resetReaderIndex
public io.netty.buffer.ByteBuf resetReaderIndex()
- Specified by:
resetReaderIndex
in classio.netty.buffer.ByteBuf
-
markWriterIndex
public io.netty.buffer.ByteBuf markWriterIndex()
- Specified by:
markWriterIndex
in classio.netty.buffer.ByteBuf
-
resetWriterIndex
public io.netty.buffer.ByteBuf resetWriterIndex()
- Specified by:
resetWriterIndex
in classio.netty.buffer.ByteBuf
-
discardReadBytes
public io.netty.buffer.ByteBuf discardReadBytes()
- Specified by:
discardReadBytes
in classio.netty.buffer.ByteBuf
-
discardSomeReadBytes
public io.netty.buffer.ByteBuf discardSomeReadBytes()
- Specified by:
discardSomeReadBytes
in classio.netty.buffer.ByteBuf
-
ensureWritable
public io.netty.buffer.ByteBuf ensureWritable(int minWritableBytes)
- Specified by:
ensureWritable
in classio.netty.buffer.ByteBuf
-
ensureWritable
public int ensureWritable(int minWritableBytes, boolean force)
- Specified by:
ensureWritable
in classio.netty.buffer.ByteBuf
-
getBoolean
public boolean getBoolean(int index)
- Specified by:
getBoolean
in classio.netty.buffer.ByteBuf
-
getByte
public byte getByte(int index)
- Specified by:
getByte
in classio.netty.buffer.ByteBuf
-
getUnsignedByte
public short getUnsignedByte(int index)
- Specified by:
getUnsignedByte
in classio.netty.buffer.ByteBuf
-
getShort
public short getShort(int index)
- Specified by:
getShort
in classio.netty.buffer.ByteBuf
-
getShortLE
public short getShortLE(int index)
- Specified by:
getShortLE
in classio.netty.buffer.ByteBuf
-
getUnsignedShort
public int getUnsignedShort(int index)
- Specified by:
getUnsignedShort
in classio.netty.buffer.ByteBuf
-
getUnsignedShortLE
public int getUnsignedShortLE(int index)
- Specified by:
getUnsignedShortLE
in classio.netty.buffer.ByteBuf
-
getMedium
public int getMedium(int index)
- Specified by:
getMedium
in classio.netty.buffer.ByteBuf
-
getMediumLE
public int getMediumLE(int index)
- Specified by:
getMediumLE
in classio.netty.buffer.ByteBuf
-
getUnsignedMedium
public int getUnsignedMedium(int index)
- Specified by:
getUnsignedMedium
in classio.netty.buffer.ByteBuf
-
getUnsignedMediumLE
public int getUnsignedMediumLE(int index)
- Specified by:
getUnsignedMediumLE
in classio.netty.buffer.ByteBuf
-
getInt
public int getInt(int index)
- Specified by:
getInt
in classio.netty.buffer.ByteBuf
-
getIntLE
public int getIntLE(int index)
- Specified by:
getIntLE
in classio.netty.buffer.ByteBuf
-
getUnsignedInt
public long getUnsignedInt(int index)
- Specified by:
getUnsignedInt
in classio.netty.buffer.ByteBuf
-
getUnsignedIntLE
public long getUnsignedIntLE(int index)
- Specified by:
getUnsignedIntLE
in classio.netty.buffer.ByteBuf
-
getLong
public long getLong(int index)
- Specified by:
getLong
in classio.netty.buffer.ByteBuf
-
getLongLE
public long getLongLE(int index)
- Specified by:
getLongLE
in classio.netty.buffer.ByteBuf
-
getChar
public char getChar(int index)
- Specified by:
getChar
in classio.netty.buffer.ByteBuf
-
getFloat
public float getFloat(int index)
- Specified by:
getFloat
in classio.netty.buffer.ByteBuf
-
getDouble
public double getDouble(int index)
- Specified by:
getDouble
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int index, io.netty.buffer.ByteBuf dst)
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int index, io.netty.buffer.ByteBuf dst, int length)
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int index, io.netty.buffer.ByteBuf dst, int dstIndex, int length)
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int index, byte[] dst)
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int index, byte[] dst, int dstIndex, int length)
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int index, java.nio.ByteBuffer dst)
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int index, java.io.OutputStream out, int length) throws java.io.IOException
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
getBytes
public int getBytes(int index, java.nio.channels.GatheringByteChannel out, int length) throws java.io.IOException
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
getBytes
public int getBytes(int index, java.nio.channels.FileChannel out, long position, int length) throws java.io.IOException
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
getCharSequence
public java.lang.CharSequence getCharSequence(int index, int length, java.nio.charset.Charset charset)
- Specified by:
getCharSequence
in classio.netty.buffer.ByteBuf
-
setBoolean
public io.netty.buffer.ByteBuf setBoolean(int index, boolean value)
- Specified by:
setBoolean
in classio.netty.buffer.ByteBuf
-
setByte
public io.netty.buffer.ByteBuf setByte(int index, int value)
- Specified by:
setByte
in classio.netty.buffer.ByteBuf
-
setShort
public io.netty.buffer.ByteBuf setShort(int index, int value)
- Specified by:
setShort
in classio.netty.buffer.ByteBuf
-
setShortLE
public io.netty.buffer.ByteBuf setShortLE(int index, int value)
- Specified by:
setShortLE
in classio.netty.buffer.ByteBuf
-
setMedium
public io.netty.buffer.ByteBuf setMedium(int index, int value)
- Specified by:
setMedium
in classio.netty.buffer.ByteBuf
-
setMediumLE
public io.netty.buffer.ByteBuf setMediumLE(int index, int value)
- Specified by:
setMediumLE
in classio.netty.buffer.ByteBuf
-
setInt
public io.netty.buffer.ByteBuf setInt(int index, int value)
- Specified by:
setInt
in classio.netty.buffer.ByteBuf
-
setIntLE
public io.netty.buffer.ByteBuf setIntLE(int index, int value)
- Specified by:
setIntLE
in classio.netty.buffer.ByteBuf
-
setLong
public io.netty.buffer.ByteBuf setLong(int index, long value)
- Specified by:
setLong
in classio.netty.buffer.ByteBuf
-
setLongLE
public io.netty.buffer.ByteBuf setLongLE(int index, long value)
- Specified by:
setLongLE
in classio.netty.buffer.ByteBuf
-
setChar
public io.netty.buffer.ByteBuf setChar(int index, int value)
- Specified by:
setChar
in classio.netty.buffer.ByteBuf
-
setFloat
public io.netty.buffer.ByteBuf setFloat(int index, float value)
- Specified by:
setFloat
in classio.netty.buffer.ByteBuf
-
setDouble
public io.netty.buffer.ByteBuf setDouble(int index, double value)
- Specified by:
setDouble
in classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int index, io.netty.buffer.ByteBuf src)
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int index, io.netty.buffer.ByteBuf src, int length)
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int index, byte[] src)
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int index, java.nio.ByteBuffer src)
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
public int setBytes(int index, java.io.InputStream in, int length) throws java.io.IOException
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
setBytes
public int setBytes(int index, java.nio.channels.ScatteringByteChannel in, int length) throws java.io.IOException
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
setBytes
public int setBytes(int index, java.nio.channels.FileChannel in, long position, int length) throws java.io.IOException
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
setZero
public io.netty.buffer.ByteBuf setZero(int index, int length)
- Specified by:
setZero
in classio.netty.buffer.ByteBuf
-
setCharSequence
public int setCharSequence(int index, java.lang.CharSequence sequence, java.nio.charset.Charset charset)
- Specified by:
setCharSequence
in classio.netty.buffer.ByteBuf
-
readBoolean
public boolean readBoolean()
- Specified by:
readBoolean
in classio.netty.buffer.ByteBuf
-
readByte
public byte readByte()
- Specified by:
readByte
in classio.netty.buffer.ByteBuf
-
readUnsignedByte
public short readUnsignedByte()
- Specified by:
readUnsignedByte
in classio.netty.buffer.ByteBuf
-
readShort
public short readShort()
- Specified by:
readShort
in classio.netty.buffer.ByteBuf
-
readShortLE
public short readShortLE()
- Specified by:
readShortLE
in classio.netty.buffer.ByteBuf
-
readUnsignedShort
public int readUnsignedShort()
- Specified by:
readUnsignedShort
in classio.netty.buffer.ByteBuf
-
readUnsignedShortLE
public int readUnsignedShortLE()
- Specified by:
readUnsignedShortLE
in classio.netty.buffer.ByteBuf
-
readMedium
public int readMedium()
- Specified by:
readMedium
in classio.netty.buffer.ByteBuf
-
readMediumLE
public int readMediumLE()
- Specified by:
readMediumLE
in classio.netty.buffer.ByteBuf
-
readUnsignedMedium
public int readUnsignedMedium()
- Specified by:
readUnsignedMedium
in classio.netty.buffer.ByteBuf
-
readUnsignedMediumLE
public int readUnsignedMediumLE()
- Specified by:
readUnsignedMediumLE
in classio.netty.buffer.ByteBuf
-
readInt
public int readInt()
- Specified by:
readInt
in classio.netty.buffer.ByteBuf
-
readIntLE
public int readIntLE()
- Specified by:
readIntLE
in classio.netty.buffer.ByteBuf
-
readUnsignedInt
public long readUnsignedInt()
- Specified by:
readUnsignedInt
in classio.netty.buffer.ByteBuf
-
readUnsignedIntLE
public long readUnsignedIntLE()
- Specified by:
readUnsignedIntLE
in classio.netty.buffer.ByteBuf
-
readLong
public long readLong()
- Specified by:
readLong
in classio.netty.buffer.ByteBuf
-
readLongLE
public long readLongLE()
- Specified by:
readLongLE
in classio.netty.buffer.ByteBuf
-
readChar
public char readChar()
- Specified by:
readChar
in classio.netty.buffer.ByteBuf
-
readFloat
public float readFloat()
- Specified by:
readFloat
in classio.netty.buffer.ByteBuf
-
readDouble
public double readDouble()
- Specified by:
readDouble
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(int length)
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readSlice
public io.netty.buffer.ByteBuf readSlice(int length)
- Specified by:
readSlice
in classio.netty.buffer.ByteBuf
-
readRetainedSlice
public io.netty.buffer.ByteBuf readRetainedSlice(int length)
- Specified by:
readRetainedSlice
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBuf dst)
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBuf dst, int length)
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBuf dst, int dstIndex, int length)
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(byte[] dst)
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(byte[] dst, int dstIndex, int length)
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(java.nio.ByteBuffer dst)
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(java.io.OutputStream out, int length) throws java.io.IOException
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
readBytes
public int readBytes(java.nio.channels.GatheringByteChannel out, int length) throws java.io.IOException
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
readCharSequence
public java.lang.CharSequence readCharSequence(int length, java.nio.charset.Charset charset)
- Specified by:
readCharSequence
in classio.netty.buffer.ByteBuf
-
readBytes
public int readBytes(java.nio.channels.FileChannel out, long position, int length) throws java.io.IOException
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
skipBytes
public io.netty.buffer.ByteBuf skipBytes(int length)
- Specified by:
skipBytes
in classio.netty.buffer.ByteBuf
-
writeBoolean
public io.netty.buffer.ByteBuf writeBoolean(boolean value)
- Specified by:
writeBoolean
in classio.netty.buffer.ByteBuf
-
writeByte
public io.netty.buffer.ByteBuf writeByte(int value)
- Specified by:
writeByte
in classio.netty.buffer.ByteBuf
-
writeShort
public io.netty.buffer.ByteBuf writeShort(int value)
- Specified by:
writeShort
in classio.netty.buffer.ByteBuf
-
writeShortLE
public io.netty.buffer.ByteBuf writeShortLE(int value)
- Specified by:
writeShortLE
in classio.netty.buffer.ByteBuf
-
writeMedium
public io.netty.buffer.ByteBuf writeMedium(int value)
- Specified by:
writeMedium
in classio.netty.buffer.ByteBuf
-
writeMediumLE
public io.netty.buffer.ByteBuf writeMediumLE(int value)
- Specified by:
writeMediumLE
in classio.netty.buffer.ByteBuf
-
writeInt
public io.netty.buffer.ByteBuf writeInt(int value)
- Specified by:
writeInt
in classio.netty.buffer.ByteBuf
-
writeIntLE
public io.netty.buffer.ByteBuf writeIntLE(int value)
- Specified by:
writeIntLE
in classio.netty.buffer.ByteBuf
-
writeLong
public io.netty.buffer.ByteBuf writeLong(long value)
- Specified by:
writeLong
in classio.netty.buffer.ByteBuf
-
writeLongLE
public io.netty.buffer.ByteBuf writeLongLE(long value)
- Specified by:
writeLongLE
in classio.netty.buffer.ByteBuf
-
writeChar
public io.netty.buffer.ByteBuf writeChar(int value)
- Specified by:
writeChar
in classio.netty.buffer.ByteBuf
-
writeFloat
public io.netty.buffer.ByteBuf writeFloat(float value)
- Specified by:
writeFloat
in classio.netty.buffer.ByteBuf
-
writeDouble
public io.netty.buffer.ByteBuf writeDouble(double value)
- Specified by:
writeDouble
in classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(io.netty.buffer.ByteBuf src)
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(io.netty.buffer.ByteBuf src, int length)
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(io.netty.buffer.ByteBuf src, int srcIndex, int length)
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(byte[] src)
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(byte[] src, int srcIndex, int length)
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(java.nio.ByteBuffer src)
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
public int writeBytes(java.io.InputStream in, int length) throws java.io.IOException
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
writeBytes
public int writeBytes(java.nio.channels.ScatteringByteChannel in, int length) throws java.io.IOException
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
writeBytes
public int writeBytes(java.nio.channels.FileChannel in, long position, int length) throws java.io.IOException
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
- Throws:
java.io.IOException
-
writeZero
public io.netty.buffer.ByteBuf writeZero(int length)
- Specified by:
writeZero
in classio.netty.buffer.ByteBuf
-
writeCharSequence
public int writeCharSequence(java.lang.CharSequence sequence, java.nio.charset.Charset charset)
- Specified by:
writeCharSequence
in classio.netty.buffer.ByteBuf
-
indexOf
public int indexOf(int fromIndex, int toIndex, byte value)
- Specified by:
indexOf
in classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(byte value)
- Specified by:
bytesBefore
in classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int length, byte value)
- Specified by:
bytesBefore
in classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int index, int length, byte value)
- Specified by:
bytesBefore
in classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(io.netty.util.ByteProcessor processor)
- Specified by:
forEachByte
in classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(int index, int length, io.netty.util.ByteProcessor processor)
- Specified by:
forEachByte
in classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(io.netty.util.ByteProcessor processor)
- Specified by:
forEachByteDesc
in classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(int index, int length, io.netty.util.ByteProcessor processor)
- Specified by:
forEachByteDesc
in classio.netty.buffer.ByteBuf
-
copy
public io.netty.buffer.ByteBuf copy()
- Specified by:
copy
in classio.netty.buffer.ByteBuf
-
copy
public io.netty.buffer.ByteBuf copy(int index, int length)
- Specified by:
copy
in classio.netty.buffer.ByteBuf
-
slice
public io.netty.buffer.ByteBuf slice()
- Specified by:
slice
in classio.netty.buffer.ByteBuf
-
retainedSlice
public io.netty.buffer.ByteBuf retainedSlice()
- Specified by:
retainedSlice
in classio.netty.buffer.ByteBuf
-
slice
public io.netty.buffer.ByteBuf slice(int index, int length)
- Specified by:
slice
in classio.netty.buffer.ByteBuf
-
retainedSlice
public io.netty.buffer.ByteBuf retainedSlice(int index, int length)
- Specified by:
retainedSlice
in classio.netty.buffer.ByteBuf
-
duplicate
public io.netty.buffer.ByteBuf duplicate()
- Specified by:
duplicate
in classio.netty.buffer.ByteBuf
-
retainedDuplicate
public io.netty.buffer.ByteBuf retainedDuplicate()
- Specified by:
retainedDuplicate
in classio.netty.buffer.ByteBuf
-
nioBuffer
public java.nio.ByteBuffer nioBuffer()
- Specified by:
nioBuffer
in classio.netty.buffer.ByteBuf
-
nioBuffer
public java.nio.ByteBuffer nioBuffer(int index, int length)
- Specified by:
nioBuffer
in classio.netty.buffer.ByteBuf
-
internalNioBuffer
public java.nio.ByteBuffer internalNioBuffer(int index, int length)
- Specified by:
internalNioBuffer
in classio.netty.buffer.ByteBuf
-
nioBuffers
public java.nio.ByteBuffer[] nioBuffers()
- Specified by:
nioBuffers
in classio.netty.buffer.ByteBuf
-
nioBuffers
public java.nio.ByteBuffer[] nioBuffers(int index, int length)
- Specified by:
nioBuffers
in classio.netty.buffer.ByteBuf
-
array
public byte[] array()
- Specified by:
array
in classio.netty.buffer.ByteBuf
-
arrayOffset
public int arrayOffset()
- Specified by:
arrayOffset
in classio.netty.buffer.ByteBuf
-
memoryAddress
public long memoryAddress()
- Specified by:
memoryAddress
in classio.netty.buffer.ByteBuf
-
toString
public java.lang.String toString(java.nio.charset.Charset charset)
- Specified by:
toString
in classio.netty.buffer.ByteBuf
-
toString
public java.lang.String toString(int index, int length, java.nio.charset.Charset charset)
- Specified by:
toString
in classio.netty.buffer.ByteBuf
-
compareTo
public int compareTo(io.netty.buffer.ByteBuf buffer)
- Specified by:
compareTo
in interfacejava.lang.Comparable<T>
- Specified by:
compareTo
in classio.netty.buffer.ByteBuf
-
retain
public io.netty.buffer.ByteBuf retain(int increment)
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
- Specified by:
retain
in classio.netty.buffer.ByteBuf
-
refCnt
public int refCnt()
-
retain
public io.netty.buffer.ByteBuf retain()
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
- Specified by:
retain
in classio.netty.buffer.ByteBuf
-
touch
public io.netty.buffer.ByteBuf touch()
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Specified by:
touch
in classio.netty.buffer.ByteBuf
-
touch
public io.netty.buffer.ByteBuf touch(java.lang.Object hint)
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Specified by:
touch
in classio.netty.buffer.ByteBuf
-
release
public boolean release()
-
release
public boolean release(int decrement)
-
toString
public java.lang.String toString()
- Specified by:
toString
in classio.netty.buffer.ByteBuf
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classio.netty.buffer.ByteBuf
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in classio.netty.buffer.ByteBuf
-
-