public class DeadBuf extends ByteBuf
| Modifier and Type | Field and Description |
|---|---|
static DrillBuf |
DEAD_BUFFER |
| Modifier and Type | Method and Description |
|---|---|
ByteBufAllocator |
alloc() |
byte[] |
array() |
int |
arrayOffset() |
int |
bytesBefore(byte value) |
int |
bytesBefore(int length,
byte value) |
int |
bytesBefore(int index,
int length,
byte value) |
int |
capacity() |
ByteBuf |
capacity(int newCapacity) |
ByteBuf |
clear() |
int |
compareTo(ByteBuf buffer) |
ByteBuf |
copy() |
ByteBuf |
copy(int index,
int length) |
ByteBuf |
discardReadBytes() |
ByteBuf |
discardSomeReadBytes() |
ByteBuf |
duplicate() |
ByteBuf |
ensureWritable(int minWritableBytes) |
int |
ensureWritable(int minWritableBytes,
boolean force) |
boolean |
equals(Object arg0) |
int |
forEachByte(ByteBufProcessor arg0) |
int |
forEachByte(int arg0,
int arg1,
ByteBufProcessor arg2) |
int |
forEachByteDesc(ByteBufProcessor arg0) |
int |
forEachByteDesc(int arg0,
int arg1,
ByteBufProcessor arg2) |
boolean |
getBoolean(int index) |
byte |
getByte(int index) |
ByteBuf |
getBytes(int index,
byte[] dst) |
ByteBuf |
getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
getBytes(int index,
ByteBuf dst) |
ByteBuf |
getBytes(int index,
ByteBuffer dst) |
ByteBuf |
getBytes(int index,
ByteBuf dst,
int length) |
ByteBuf |
getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
int |
getBytes(int index,
GatheringByteChannel out,
int length) |
ByteBuf |
getBytes(int index,
OutputStream out,
int length) |
char |
getChar(int index) |
double |
getDouble(int index) |
float |
getFloat(int index) |
int |
getInt(int index) |
long |
getLong(int index) |
int |
getMedium(int index) |
short |
getShort(int index) |
short |
getUnsignedByte(int index) |
long |
getUnsignedInt(int index) |
int |
getUnsignedMedium(int index) |
int |
getUnsignedShort(int index) |
boolean |
hasArray() |
int |
hashCode() |
boolean |
hasMemoryAddress() |
int |
indexOf(int fromIndex,
int toIndex,
byte value) |
ByteBuffer |
internalNioBuffer(int arg0,
int arg1) |
boolean |
isDirect() |
boolean |
isReadable() |
boolean |
isReadable(int size) |
boolean |
isWritable() |
boolean |
isWritable(int size) |
ByteBuf |
markReaderIndex() |
ByteBuf |
markWriterIndex() |
int |
maxCapacity() |
int |
maxWritableBytes() |
long |
memoryAddress() |
ByteBuffer |
nioBuffer() |
ByteBuffer |
nioBuffer(int index,
int length) |
int |
nioBufferCount() |
ByteBuffer[] |
nioBuffers() |
ByteBuffer[] |
nioBuffers(int index,
int length) |
ByteOrder |
order() |
ByteBuf |
order(ByteOrder endianness) |
int |
readableBytes() |
boolean |
readBoolean() |
byte |
readByte() |
ByteBuf |
readBytes(byte[] dst) |
ByteBuf |
readBytes(byte[] dst,
int dstIndex,
int length) |
ByteBuf |
readBytes(ByteBuf dst) |
ByteBuf |
readBytes(ByteBuffer dst) |
ByteBuf |
readBytes(ByteBuf dst,
int length) |
ByteBuf |
readBytes(ByteBuf dst,
int dstIndex,
int length) |
int |
readBytes(GatheringByteChannel out,
int length) |
ByteBuf |
readBytes(int length) |
ByteBuf |
readBytes(OutputStream out,
int length) |
char |
readChar() |
double |
readDouble() |
int |
readerIndex() |
ByteBuf |
readerIndex(int readerIndex) |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
int |
readMedium() |
short |
readShort() |
ByteBuf |
readSlice(int length) |
short |
readUnsignedByte() |
long |
readUnsignedInt() |
int |
readUnsignedMedium() |
int |
readUnsignedShort() |
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
ByteBuf |
resetReaderIndex() |
ByteBuf |
resetWriterIndex() |
ByteBuf |
retain() |
ByteBuf |
retain(int increment) |
ByteBuf |
setBoolean(int index,
boolean value) |
ByteBuf |
setByte(int index,
int value) |
ByteBuf |
setBytes(int index,
byte[] src) |
ByteBuf |
setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
setBytes(int index,
ByteBuf src) |
ByteBuf |
setBytes(int index,
ByteBuffer src) |
ByteBuf |
setBytes(int index,
ByteBuf src,
int length) |
ByteBuf |
setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
int |
setBytes(int index,
InputStream in,
int length) |
int |
setBytes(int index,
ScatteringByteChannel in,
int length) |
ByteBuf |
setChar(int index,
int value) |
ByteBuf |
setDouble(int index,
double value) |
ByteBuf |
setFloat(int index,
float value) |
ByteBuf |
setIndex(int readerIndex,
int writerIndex) |
ByteBuf |
setInt(int index,
int value) |
ByteBuf |
setLong(int index,
long value) |
ByteBuf |
setMedium(int index,
int value) |
ByteBuf |
setShort(int index,
int value) |
ByteBuf |
setZero(int index,
int length) |
ByteBuf |
skipBytes(int length) |
ByteBuf |
slice() |
ByteBuf |
slice(int index,
int length) |
String |
toString() |
String |
toString(Charset charset) |
String |
toString(int index,
int length,
Charset charset) |
ByteBuf |
unwrap() |
int |
writableBytes() |
ByteBuf |
writeBoolean(boolean value) |
ByteBuf |
writeByte(int value) |
ByteBuf |
writeBytes(byte[] src) |
ByteBuf |
writeBytes(byte[] src,
int srcIndex,
int length) |
ByteBuf |
writeBytes(ByteBuf src) |
ByteBuf |
writeBytes(ByteBuffer src) |
ByteBuf |
writeBytes(ByteBuf src,
int length) |
ByteBuf |
writeBytes(ByteBuf src,
int srcIndex,
int length) |
int |
writeBytes(InputStream in,
int length) |
int |
writeBytes(ScatteringByteChannel in,
int length) |
ByteBuf |
writeChar(int value) |
ByteBuf |
writeDouble(double value) |
ByteBuf |
writeFloat(float value) |
ByteBuf |
writeInt(int value) |
ByteBuf |
writeLong(long value) |
ByteBuf |
writeMedium(int value) |
int |
writerIndex() |
ByteBuf |
writerIndex(int writerIndex) |
ByteBuf |
writeShort(int value) |
ByteBuf |
writeZero(int length) |
public static final DrillBuf DEAD_BUFFER
public boolean isReadable(int size)
isReadable in class ByteBufpublic boolean isWritable(int size)
isWritable in class ByteBufpublic int refCnt()
public boolean release()
public boolean release(int decrement)
public int maxCapacity()
maxCapacity in class ByteBufpublic ByteBufAllocator alloc()
public int readerIndex()
readerIndex in class ByteBufpublic ByteBuf readerIndex(int readerIndex)
readerIndex in class ByteBufpublic int writerIndex()
writerIndex in class ByteBufpublic ByteBuf writerIndex(int writerIndex)
writerIndex in class ByteBufpublic ByteBuf setIndex(int readerIndex, int writerIndex)
public int readableBytes()
readableBytes in class ByteBufpublic int writableBytes()
writableBytes in class ByteBufpublic int maxWritableBytes()
maxWritableBytes in class ByteBufpublic boolean isReadable()
isReadable in class ByteBufpublic boolean isWritable()
isWritable in class ByteBufpublic ByteBuf markReaderIndex()
markReaderIndex in class ByteBufpublic ByteBuf resetReaderIndex()
resetReaderIndex in class ByteBufpublic ByteBuf markWriterIndex()
markWriterIndex in class ByteBufpublic ByteBuf resetWriterIndex()
resetWriterIndex in class ByteBufpublic ByteBuf discardReadBytes()
discardReadBytes in class ByteBufpublic ByteBuf discardSomeReadBytes()
discardSomeReadBytes in class ByteBufpublic ByteBuf ensureWritable(int minWritableBytes)
ensureWritable in class ByteBufpublic int ensureWritable(int minWritableBytes,
boolean force)
ensureWritable in class ByteBufpublic boolean getBoolean(int index)
getBoolean in class ByteBufpublic short getUnsignedByte(int index)
getUnsignedByte in class ByteBufpublic int getUnsignedShort(int index)
getUnsignedShort in class ByteBufpublic int getUnsignedMedium(int index)
getUnsignedMedium in class ByteBufpublic long getUnsignedInt(int index)
getUnsignedInt in class ByteBufpublic ByteBuf getBytes(int index, byte[] dst, int dstIndex, int length)
public ByteBuf getBytes(int index, ByteBuffer dst)
public ByteBuf getBytes(int index, OutputStream out, int length) throws IOException
getBytes in class ByteBufIOExceptionpublic int getBytes(int index,
GatheringByteChannel out,
int length)
throws IOException
getBytes in class ByteBufIOExceptionpublic ByteBuf setBoolean(int index, boolean value)
setBoolean in class ByteBufpublic ByteBuf setDouble(int index, double value)
public ByteBuf setBytes(int index, byte[] src, int srcIndex, int length)
public ByteBuf setBytes(int index, ByteBuffer src)
public int setBytes(int index,
InputStream in,
int length)
throws IOException
setBytes in class ByteBufIOExceptionpublic int setBytes(int index,
ScatteringByteChannel in,
int length)
throws IOException
setBytes in class ByteBufIOExceptionpublic boolean readBoolean()
readBoolean in class ByteBufpublic short readUnsignedByte()
readUnsignedByte in class ByteBufpublic int readUnsignedShort()
readUnsignedShort in class ByteBufpublic int readMedium()
readMedium in class ByteBufpublic int readUnsignedMedium()
readUnsignedMedium in class ByteBufpublic long readUnsignedInt()
readUnsignedInt in class ByteBufpublic double readDouble()
readDouble in class ByteBufpublic ByteBuf readBytes(byte[] dst, int dstIndex, int length)
public ByteBuf readBytes(ByteBuffer dst)
public ByteBuf readBytes(OutputStream out, int length) throws IOException
readBytes in class ByteBufIOExceptionpublic int readBytes(GatheringByteChannel out, int length) throws IOException
readBytes in class ByteBufIOExceptionpublic ByteBuf writeBoolean(boolean value)
writeBoolean in class ByteBufpublic ByteBuf writeShort(int value)
writeShort in class ByteBufpublic ByteBuf writeMedium(int value)
writeMedium in class ByteBufpublic ByteBuf writeFloat(float value)
writeFloat in class ByteBufpublic ByteBuf writeDouble(double value)
writeDouble in class ByteBufpublic ByteBuf writeBytes(ByteBuf src)
writeBytes in class ByteBufpublic ByteBuf writeBytes(ByteBuf src, int length)
writeBytes in class ByteBufpublic ByteBuf writeBytes(ByteBuf src, int srcIndex, int length)
writeBytes in class ByteBufpublic ByteBuf writeBytes(byte[] src)
writeBytes in class ByteBufpublic ByteBuf writeBytes(byte[] src, int srcIndex, int length)
writeBytes in class ByteBufpublic ByteBuf writeBytes(ByteBuffer src)
writeBytes in class ByteBufpublic int writeBytes(InputStream in, int length) throws IOException
writeBytes in class ByteBufIOExceptionpublic int writeBytes(ScatteringByteChannel in, int length) throws IOException
writeBytes in class ByteBufIOExceptionpublic int indexOf(int fromIndex,
int toIndex,
byte value)
public int bytesBefore(byte value)
bytesBefore in class ByteBufpublic int bytesBefore(int length,
byte value)
bytesBefore in class ByteBufpublic int bytesBefore(int index,
int length,
byte value)
bytesBefore in class ByteBufpublic int nioBufferCount()
nioBufferCount in class ByteBufpublic ByteBuffer nioBuffer()
public ByteBuffer nioBuffer(int index, int length)
public ByteBuffer[] nioBuffers()
nioBuffers in class ByteBufpublic ByteBuffer[] nioBuffers(int index, int length)
nioBuffers in class ByteBufpublic int arrayOffset()
arrayOffset in class ByteBufpublic boolean hasMemoryAddress()
hasMemoryAddress in class ByteBufpublic long memoryAddress()
memoryAddress in class ByteBufpublic int compareTo(ByteBuf buffer)
compareTo in interface Comparable<ByteBuf>compareTo in class ByteBufpublic ByteBuf retain(int increment)
public ByteBuf retain()
public int forEachByte(ByteBufProcessor arg0)
forEachByte in class ByteBufpublic int forEachByte(int arg0,
int arg1,
ByteBufProcessor arg2)
forEachByte in class ByteBufpublic int forEachByteDesc(ByteBufProcessor arg0)
forEachByteDesc in class ByteBufpublic int forEachByteDesc(int arg0,
int arg1,
ByteBufProcessor arg2)
forEachByteDesc in class ByteBufpublic ByteBuffer internalNioBuffer(int arg0, int arg1)
internalNioBuffer in class ByteBufCopyright © 2017 The Apache Software Foundation. All rights reserved.