public class PacketBuffer
extends ByteBuf
Constructor and Description |
---|
PacketBuffer(ByteBuf p_i45154_1_) |
Modifier and Type | Method and Description |
---|---|
ByteBufAllocator |
alloc() |
byte[] |
array() |
int |
arrayOffset() |
int |
bytesBefore(byte p_bytesBefore_1_) |
int |
bytesBefore(int p_bytesBefore_1_,
byte p_bytesBefore_2_) |
int |
bytesBefore(int p_bytesBefore_1_,
int p_bytesBefore_2_,
byte p_bytesBefore_3_) |
int |
capacity() |
ByteBuf |
capacity(int p_capacity_1_) |
ByteBuf |
clear() |
int |
compareTo(ByteBuf p_compareTo_1_) |
ByteBuf |
copy() |
ByteBuf |
copy(int p_copy_1_,
int p_copy_2_) |
ByteBuf |
discardReadBytes() |
ByteBuf |
discardSomeReadBytes() |
ByteBuf |
duplicate() |
ByteBuf |
ensureWritable(int p_ensureWritable_1_) |
int |
ensureWritable(int p_ensureWritable_1_,
boolean p_ensureWritable_2_) |
boolean |
equals(java.lang.Object p_equals_1_) |
int |
forEachByte(ByteBufProcessor p_forEachByte_1_) |
int |
forEachByte(int p_forEachByte_1_,
int p_forEachByte_2_,
ByteBufProcessor p_forEachByte_3_) |
int |
forEachByteDesc(ByteBufProcessor p_forEachByteDesc_1_) |
int |
forEachByteDesc(int p_forEachByteDesc_1_,
int p_forEachByteDesc_2_,
ByteBufProcessor p_forEachByteDesc_3_) |
boolean |
getBoolean(int p_getBoolean_1_) |
byte |
getByte(int p_getByte_1_) |
ByteBuf |
getBytes(int p_getBytes_1_,
byte[] p_getBytes_2_) |
ByteBuf |
getBytes(int p_getBytes_1_,
byte[] p_getBytes_2_,
int p_getBytes_3_,
int p_getBytes_4_) |
ByteBuf |
getBytes(int p_getBytes_1_,
ByteBuf p_getBytes_2_) |
ByteBuf |
getBytes(int p_getBytes_1_,
java.nio.ByteBuffer p_getBytes_2_) |
ByteBuf |
getBytes(int p_getBytes_1_,
ByteBuf p_getBytes_2_,
int p_getBytes_3_) |
ByteBuf |
getBytes(int p_getBytes_1_,
ByteBuf p_getBytes_2_,
int p_getBytes_3_,
int p_getBytes_4_) |
ByteBuf |
getBytes(int p_getBytes_1_,
java.io.OutputStream p_getBytes_2_,
int p_getBytes_3_) |
char |
getChar(int p_getChar_1_) |
double |
getDouble(int p_getDouble_1_) |
float |
getFloat(int p_getFloat_1_) |
int |
getInt(int p_getInt_1_) |
long |
getLong(int p_getLong_1_) |
int |
getMedium(int p_getMedium_1_) |
short |
getShort(int p_getShort_1_) |
short |
getUnsignedByte(int p_getUnsignedByte_1_) |
long |
getUnsignedInt(int p_getUnsignedInt_1_) |
int |
getUnsignedMedium(int p_getUnsignedMedium_1_) |
int |
getUnsignedShort(int p_getUnsignedShort_1_) |
static int |
getVarIntSize(int p_150790_0_) |
boolean |
hasArray() |
int |
hashCode() |
boolean |
hasMemoryAddress() |
int |
indexOf(int p_indexOf_1_,
int p_indexOf_2_,
byte p_indexOf_3_) |
java.nio.ByteBuffer |
internalNioBuffer(int p_internalNioBuffer_1_,
int p_internalNioBuffer_2_) |
boolean |
isDirect() |
boolean |
isReadable() |
boolean |
isReadable(int p_isReadable_1_) |
boolean |
isWritable() |
boolean |
isWritable(int p_isWritable_1_) |
ByteBuf |
markReaderIndex() |
ByteBuf |
markWriterIndex() |
int |
maxCapacity() |
int |
maxWritableBytes() |
long |
memoryAddress() |
java.nio.ByteBuffer |
nioBuffer() |
java.nio.ByteBuffer |
nioBuffer(int p_nioBuffer_1_,
int p_nioBuffer_2_) |
int |
nioBufferCount() |
java.nio.ByteBuffer[] |
nioBuffers() |
java.nio.ByteBuffer[] |
nioBuffers(int p_nioBuffers_1_,
int p_nioBuffers_2_) |
java.nio.ByteOrder |
order() |
ByteBuf |
order(java.nio.ByteOrder p_order_1_) |
int |
readableBytes() |
boolean |
readBoolean() |
byte |
readByte() |
ByteBuf |
readBytes(byte[] p_readBytes_1_) |
ByteBuf |
readBytes(byte[] p_readBytes_1_,
int p_readBytes_2_,
int p_readBytes_3_) |
ByteBuf |
readBytes(ByteBuf p_readBytes_1_) |
ByteBuf |
readBytes(java.nio.ByteBuffer p_readBytes_1_) |
ByteBuf |
readBytes(ByteBuf p_readBytes_1_,
int p_readBytes_2_) |
ByteBuf |
readBytes(ByteBuf p_readBytes_1_,
int p_readBytes_2_,
int p_readBytes_3_) |
ByteBuf |
readBytes(int p_readBytes_1_) |
ByteBuf |
readBytes(java.io.OutputStream p_readBytes_1_,
int p_readBytes_2_) |
char |
readChar() |
double |
readDouble() |
int |
readerIndex() |
ByteBuf |
readerIndex(int p_readerIndex_1_) |
float |
readFloat() |
int |
readInt() |
ItemStack |
readItemStackFromBuffer() |
long |
readLong() |
int |
readMedium() |
NBTTagCompound |
readNBTTagCompoundFromBuffer() |
short |
readShort() |
ByteBuf |
readSlice(int p_readSlice_1_) |
java.lang.String |
readStringFromBuffer(int p_150789_1_) |
short |
readUnsignedByte() |
long |
readUnsignedInt() |
int |
readUnsignedMedium() |
int |
readUnsignedShort() |
int |
readVarIntFromBuffer() |
int |
refCnt() |
boolean |
release() |
boolean |
release(int p_release_1_) |
ByteBuf |
resetReaderIndex() |
ByteBuf |
resetWriterIndex() |
ByteBuf |
retain() |
ByteBuf |
retain(int p_retain_1_) |
ByteBuf |
setBoolean(int p_setBoolean_1_,
boolean p_setBoolean_2_) |
ByteBuf |
setByte(int p_setByte_1_,
int p_setByte_2_) |
ByteBuf |
setBytes(int p_setBytes_1_,
byte[] p_setBytes_2_) |
ByteBuf |
setBytes(int p_setBytes_1_,
byte[] p_setBytes_2_,
int p_setBytes_3_,
int p_setBytes_4_) |
ByteBuf |
setBytes(int p_setBytes_1_,
ByteBuf p_setBytes_2_) |
ByteBuf |
setBytes(int p_setBytes_1_,
java.nio.ByteBuffer p_setBytes_2_) |
ByteBuf |
setBytes(int p_setBytes_1_,
ByteBuf p_setBytes_2_,
int p_setBytes_3_) |
ByteBuf |
setBytes(int p_setBytes_1_,
ByteBuf p_setBytes_2_,
int p_setBytes_3_,
int p_setBytes_4_) |
ByteBuf |
setChar(int p_setChar_1_,
int p_setChar_2_) |
ByteBuf |
setDouble(int p_setDouble_1_,
double p_setDouble_2_) |
ByteBuf |
setFloat(int p_setFloat_1_,
float p_setFloat_2_) |
ByteBuf |
setIndex(int p_setIndex_1_,
int p_setIndex_2_) |
ByteBuf |
setInt(int p_setInt_1_,
int p_setInt_2_) |
ByteBuf |
setLong(int p_setLong_1_,
long p_setLong_2_) |
ByteBuf |
setMedium(int p_setMedium_1_,
int p_setMedium_2_) |
ByteBuf |
setShort(int p_setShort_1_,
int p_setShort_2_) |
ByteBuf |
setZero(int p_setZero_1_,
int p_setZero_2_) |
ByteBuf |
skipBytes(int p_skipBytes_1_) |
ByteBuf |
slice() |
ByteBuf |
slice(int p_slice_1_,
int p_slice_2_) |
java.lang.String |
toString() |
java.lang.String |
toString(java.nio.charset.Charset p_toString_1_) |
java.lang.String |
toString(int p_toString_1_,
int p_toString_2_,
java.nio.charset.Charset p_toString_3_) |
ByteBuf |
unwrap() |
int |
writableBytes() |
ByteBuf |
writeBoolean(boolean p_writeBoolean_1_) |
ByteBuf |
writeByte(int p_writeByte_1_) |
ByteBuf |
writeBytes(byte[] p_writeBytes_1_) |
ByteBuf |
writeBytes(byte[] p_writeBytes_1_,
int p_writeBytes_2_,
int p_writeBytes_3_) |
ByteBuf |
writeBytes(ByteBuf p_writeBytes_1_) |
ByteBuf |
writeBytes(java.nio.ByteBuffer p_writeBytes_1_) |
ByteBuf |
writeBytes(ByteBuf p_writeBytes_1_,
int p_writeBytes_2_) |
ByteBuf |
writeBytes(ByteBuf p_writeBytes_1_,
int p_writeBytes_2_,
int p_writeBytes_3_) |
ByteBuf |
writeChar(int p_writeChar_1_) |
ByteBuf |
writeDouble(double p_writeDouble_1_) |
ByteBuf |
writeFloat(float p_writeFloat_1_) |
ByteBuf |
writeInt(int p_writeInt_1_) |
void |
writeItemStackToBuffer(ItemStack p_150788_1_) |
ByteBuf |
writeLong(long p_writeLong_1_) |
ByteBuf |
writeMedium(int p_writeMedium_1_) |
void |
writeNBTTagCompoundToBuffer(NBTTagCompound p_150786_1_) |
int |
writerIndex() |
ByteBuf |
writerIndex(int p_writerIndex_1_) |
ByteBuf |
writeShort(int p_writeShort_1_) |
void |
writeStringToBuffer(java.lang.String p_150785_1_) |
void |
writeVarIntToBuffer(int p_150787_1_) |
ByteBuf |
writeZero(int p_writeZero_1_) |
public static int getVarIntSize(int p_150790_0_)
public int readVarIntFromBuffer()
public void writeVarIntToBuffer(int p_150787_1_)
public void writeNBTTagCompoundToBuffer(NBTTagCompound p_150786_1_) throws java.io.IOException
java.io.IOException
public NBTTagCompound readNBTTagCompoundFromBuffer() throws java.io.IOException
java.io.IOException
public void writeItemStackToBuffer(ItemStack p_150788_1_) throws java.io.IOException
java.io.IOException
public ItemStack readItemStackFromBuffer() throws java.io.IOException
java.io.IOException
public java.lang.String readStringFromBuffer(int p_150789_1_) throws java.io.IOException
java.io.IOException
public void writeStringToBuffer(java.lang.String p_150785_1_) throws java.io.IOException
java.io.IOException
public int capacity()
public ByteBuf capacity(int p_capacity_1_)
public int maxCapacity()
public ByteBufAllocator alloc()
public java.nio.ByteOrder order()
public ByteBuf order(java.nio.ByteOrder p_order_1_)
public ByteBuf unwrap()
public boolean isDirect()
public int readerIndex()
public ByteBuf readerIndex(int p_readerIndex_1_)
public int writerIndex()
public ByteBuf writerIndex(int p_writerIndex_1_)
public ByteBuf setIndex(int p_setIndex_1_, int p_setIndex_2_)
public int readableBytes()
public int writableBytes()
public int maxWritableBytes()
public boolean isReadable()
public boolean isReadable(int p_isReadable_1_)
public boolean isWritable()
public boolean isWritable(int p_isWritable_1_)
public ByteBuf clear()
public ByteBuf markReaderIndex()
public ByteBuf resetReaderIndex()
public ByteBuf markWriterIndex()
public ByteBuf resetWriterIndex()
public ByteBuf discardReadBytes()
public ByteBuf discardSomeReadBytes()
public ByteBuf ensureWritable(int p_ensureWritable_1_)
public int ensureWritable(int p_ensureWritable_1_, boolean p_ensureWritable_2_)
public boolean getBoolean(int p_getBoolean_1_)
public byte getByte(int p_getByte_1_)
public short getUnsignedByte(int p_getUnsignedByte_1_)
public short getShort(int p_getShort_1_)
public int getUnsignedShort(int p_getUnsignedShort_1_)
public int getMedium(int p_getMedium_1_)
public int getUnsignedMedium(int p_getUnsignedMedium_1_)
public int getInt(int p_getInt_1_)
public long getUnsignedInt(int p_getUnsignedInt_1_)
public long getLong(int p_getLong_1_)
public char getChar(int p_getChar_1_)
public float getFloat(int p_getFloat_1_)
public double getDouble(int p_getDouble_1_)
public ByteBuf getBytes(int p_getBytes_1_, ByteBuf p_getBytes_2_)
public ByteBuf getBytes(int p_getBytes_1_, ByteBuf p_getBytes_2_, int p_getBytes_3_)
public ByteBuf getBytes(int p_getBytes_1_, ByteBuf p_getBytes_2_, int p_getBytes_3_, int p_getBytes_4_)
public ByteBuf getBytes(int p_getBytes_1_, byte[] p_getBytes_2_)
public ByteBuf getBytes(int p_getBytes_1_, byte[] p_getBytes_2_, int p_getBytes_3_, int p_getBytes_4_)
public ByteBuf getBytes(int p_getBytes_1_, java.nio.ByteBuffer p_getBytes_2_)
public ByteBuf getBytes(int p_getBytes_1_, java.io.OutputStream p_getBytes_2_, int p_getBytes_3_) throws java.io.IOException
java.io.IOException
public ByteBuf setBoolean(int p_setBoolean_1_, boolean p_setBoolean_2_)
public ByteBuf setByte(int p_setByte_1_, int p_setByte_2_)
public ByteBuf setShort(int p_setShort_1_, int p_setShort_2_)
public ByteBuf setMedium(int p_setMedium_1_, int p_setMedium_2_)
public ByteBuf setInt(int p_setInt_1_, int p_setInt_2_)
public ByteBuf setLong(int p_setLong_1_, long p_setLong_2_)
public ByteBuf setChar(int p_setChar_1_, int p_setChar_2_)
public ByteBuf setFloat(int p_setFloat_1_, float p_setFloat_2_)
public ByteBuf setDouble(int p_setDouble_1_, double p_setDouble_2_)
public ByteBuf setBytes(int p_setBytes_1_, ByteBuf p_setBytes_2_)
public ByteBuf setBytes(int p_setBytes_1_, ByteBuf p_setBytes_2_, int p_setBytes_3_)
public ByteBuf setBytes(int p_setBytes_1_, ByteBuf p_setBytes_2_, int p_setBytes_3_, int p_setBytes_4_)
public ByteBuf setBytes(int p_setBytes_1_, byte[] p_setBytes_2_)
public ByteBuf setBytes(int p_setBytes_1_, byte[] p_setBytes_2_, int p_setBytes_3_, int p_setBytes_4_)
public ByteBuf setBytes(int p_setBytes_1_, java.nio.ByteBuffer p_setBytes_2_)
public ByteBuf setZero(int p_setZero_1_, int p_setZero_2_)
public boolean readBoolean()
public byte readByte()
public short readUnsignedByte()
public short readShort()
public int readUnsignedShort()
public int readMedium()
public int readUnsignedMedium()
public int readInt()
public long readUnsignedInt()
public long readLong()
public char readChar()
public float readFloat()
public double readDouble()
public ByteBuf readBytes(int p_readBytes_1_)
public ByteBuf readSlice(int p_readSlice_1_)
public ByteBuf readBytes(ByteBuf p_readBytes_1_)
public ByteBuf readBytes(ByteBuf p_readBytes_1_, int p_readBytes_2_)
public ByteBuf readBytes(ByteBuf p_readBytes_1_, int p_readBytes_2_, int p_readBytes_3_)
public ByteBuf readBytes(byte[] p_readBytes_1_)
public ByteBuf readBytes(byte[] p_readBytes_1_, int p_readBytes_2_, int p_readBytes_3_)
public ByteBuf readBytes(java.nio.ByteBuffer p_readBytes_1_)
public ByteBuf readBytes(java.io.OutputStream p_readBytes_1_, int p_readBytes_2_) throws java.io.IOException
java.io.IOException
public ByteBuf skipBytes(int p_skipBytes_1_)
public ByteBuf writeBoolean(boolean p_writeBoolean_1_)
public ByteBuf writeByte(int p_writeByte_1_)
public ByteBuf writeShort(int p_writeShort_1_)
public ByteBuf writeMedium(int p_writeMedium_1_)
public ByteBuf writeInt(int p_writeInt_1_)
public ByteBuf writeLong(long p_writeLong_1_)
public ByteBuf writeChar(int p_writeChar_1_)
public ByteBuf writeFloat(float p_writeFloat_1_)
public ByteBuf writeDouble(double p_writeDouble_1_)
public ByteBuf writeBytes(ByteBuf p_writeBytes_1_)
public ByteBuf writeBytes(ByteBuf p_writeBytes_1_, int p_writeBytes_2_)
public ByteBuf writeBytes(ByteBuf p_writeBytes_1_, int p_writeBytes_2_, int p_writeBytes_3_)
public ByteBuf writeBytes(byte[] p_writeBytes_1_)
public ByteBuf writeBytes(byte[] p_writeBytes_1_, int p_writeBytes_2_, int p_writeBytes_3_)
public ByteBuf writeBytes(java.nio.ByteBuffer p_writeBytes_1_)
public ByteBuf writeZero(int p_writeZero_1_)
public int indexOf(int p_indexOf_1_, int p_indexOf_2_, byte p_indexOf_3_)
public int bytesBefore(byte p_bytesBefore_1_)
public int bytesBefore(int p_bytesBefore_1_, byte p_bytesBefore_2_)
public int bytesBefore(int p_bytesBefore_1_, int p_bytesBefore_2_, byte p_bytesBefore_3_)
public int forEachByte(ByteBufProcessor p_forEachByte_1_)
public int forEachByte(int p_forEachByte_1_, int p_forEachByte_2_, ByteBufProcessor p_forEachByte_3_)
public int forEachByteDesc(ByteBufProcessor p_forEachByteDesc_1_)
public int forEachByteDesc(int p_forEachByteDesc_1_, int p_forEachByteDesc_2_, ByteBufProcessor p_forEachByteDesc_3_)
public ByteBuf copy()
public ByteBuf copy(int p_copy_1_, int p_copy_2_)
public ByteBuf slice()
public ByteBuf slice(int p_slice_1_, int p_slice_2_)
public ByteBuf duplicate()
public int nioBufferCount()
public java.nio.ByteBuffer nioBuffer()
public java.nio.ByteBuffer nioBuffer(int p_nioBuffer_1_, int p_nioBuffer_2_)
public java.nio.ByteBuffer internalNioBuffer(int p_internalNioBuffer_1_, int p_internalNioBuffer_2_)
public java.nio.ByteBuffer[] nioBuffers()
public java.nio.ByteBuffer[] nioBuffers(int p_nioBuffers_1_, int p_nioBuffers_2_)
public boolean hasArray()
public byte[] array()
public int arrayOffset()
public boolean hasMemoryAddress()
public long memoryAddress()
public java.lang.String toString(java.nio.charset.Charset p_toString_1_)
public java.lang.String toString(int p_toString_1_, int p_toString_2_, java.nio.charset.Charset p_toString_3_)
public int hashCode()
public boolean equals(java.lang.Object p_equals_1_)
public int compareTo(ByteBuf p_compareTo_1_)
public java.lang.String toString()
public ByteBuf retain(int p_retain_1_)
public ByteBuf retain()
public int refCnt()
public boolean release()
public boolean release(int p_release_1_)