Package net.minecraft.network
Class PacketByteBuf
java.lang.Object
io.netty.buffer.ByteBuf
net.minecraft.network.PacketByteBuf
- All Implemented Interfaces:
io.netty.util.ReferenceCounted,Comparable<io.netty.buffer.ByteBuf>
public class PacketByteBuf
extends io.netty.buffer.ByteBuf
A packet byte buf is a specialized byte buf with utility methods adapted
to Minecraft's protocol. It has serialization and deserialization of
custom objects.
All read and write methods throw IndexOutOfBoundsException if there is not enough bytes to be read or
not enough space to write.
-
Field Summary
Fields Modifier and Type Field Description private io.netty.buffer.ByteBufparent -
Constructor Summary
Constructors Constructor Description PacketByteBuf(io.netty.buffer.ByteBuf byteBuf) -
Method Summary
Modifier and Type Method Description io.netty.buffer.ByteBufAllocatoralloc()byte[]array()intarrayOffset()io.netty.buffer.ByteBufasReadOnly()intbytesBefore(byte byte2)intbytesBefore(int int2, byte byte2)intbytesBefore(int int2, int int3, byte byte2)intcapacity()io.netty.buffer.ByteBufcapacity(int int2)io.netty.buffer.ByteBufclear()intcompareTo(io.netty.buffer.ByteBuf byteBuf)io.netty.buffer.ByteBufcopy()io.netty.buffer.ByteBufcopy(int int2, int int3)<T> Tdecode(com.mojang.serialization.Codec<T> codec)Reads an object from this buf as a compound NBT with the given codec.io.netty.buffer.ByteBufdiscardReadBytes()io.netty.buffer.ByteBufdiscardSomeReadBytes()io.netty.buffer.ByteBufduplicate()<T> voidencode(com.mojang.serialization.Codec<T> codec, T object)Writes an object to this buf as a compound NBT with the given codec.io.netty.buffer.ByteBufensureWritable(int int2)intensureWritable(int int2, boolean bool)booleanequals(Object object)intforEachByte(int int2, int int3, io.netty.util.ByteProcessor byteProcessor)intforEachByte(io.netty.util.ByteProcessor byteProcessor)intforEachByteDesc(int int2, int int3, io.netty.util.ByteProcessor byteProcessor)intforEachByteDesc(io.netty.util.ByteProcessor byteProcessor)booleangetBoolean(int int2)bytegetByte(int int2)io.netty.buffer.ByteBufgetBytes(int int2, byte[] byte2)io.netty.buffer.ByteBufgetBytes(int int2, byte[] byte2, int int3, int int4)io.netty.buffer.ByteBufgetBytes(int int2, io.netty.buffer.ByteBuf byteBuf)io.netty.buffer.ByteBufgetBytes(int int2, io.netty.buffer.ByteBuf byteBuf, int int3)io.netty.buffer.ByteBufgetBytes(int int2, io.netty.buffer.ByteBuf byteBuf, int int3, int int4)io.netty.buffer.ByteBufgetBytes(int int2, OutputStream outputStream, int int3)io.netty.buffer.ByteBufgetBytes(int int2, ByteBuffer byteBuffer)intgetBytes(int int2, FileChannel fileChannel, long long2, int int3)intgetBytes(int int2, GatheringByteChannel gatheringByteChannel, int int3)chargetChar(int int2)CharSequencegetCharSequence(int int2, int int3, Charset charset)doublegetDouble(int int2)floatgetFloat(int int2)intgetInt(int int2)intgetIntLE(int int2)longgetLong(int int2)longgetLongLE(int int2)intgetMedium(int int2)intgetMediumLE(int int2)shortgetShort(int int2)shortgetShortLE(int int2)shortgetUnsignedByte(int int2)longgetUnsignedInt(int int2)longgetUnsignedIntLE(int int2)intgetUnsignedMedium(int int2)intgetUnsignedMediumLE(int int2)intgetUnsignedShort(int int2)intgetUnsignedShortLE(int int2)static intgetVarIntLength(int value)Returns the number of bytes needed to encodevalueas a var int.booleanhasArray()inthashCode()booleanhasMemoryAddress()intindexOf(int int2, int int3, byte byte2)ByteBufferinternalNioBuffer(int int2, int int3)booleanisDirect()booleanisReadable()booleanisReadable(int int2)booleanisReadOnly()booleanisWritable()booleanisWritable(int int2)io.netty.buffer.ByteBufmarkReaderIndex()io.netty.buffer.ByteBufmarkWriterIndex()intmaxCapacity()intmaxWritableBytes()longmemoryAddress()ByteBuffernioBuffer()ByteBuffernioBuffer(int int2, int int3)intnioBufferCount()ByteBuffer[]nioBuffers()ByteBuffer[]nioBuffers(int int2, int int3)ByteOrderorder()io.netty.buffer.ByteBuforder(ByteOrder byteOrder)intreadableBytes()BlockHitResultreadBlockHitResult()Reads a block hit result from this buf.BlockPosreadBlockPos()Reads a block position from this buf.booleanreadBoolean()bytereadByte()byte[]readByteArray()Reads an array of primitive bytes from this buf.byte[]readByteArray(int maxSize)Reads an array of primitive bytes from this buf.io.netty.buffer.ByteBufreadBytes(byte[] byte2)io.netty.buffer.ByteBufreadBytes(byte[] byte2, int int2, int int3)io.netty.buffer.ByteBufreadBytes(int int2)io.netty.buffer.ByteBufreadBytes(io.netty.buffer.ByteBuf byteBuf)io.netty.buffer.ByteBufreadBytes(io.netty.buffer.ByteBuf byteBuf, int int2)io.netty.buffer.ByteBufreadBytes(io.netty.buffer.ByteBuf byteBuf, int int2, int int3)io.netty.buffer.ByteBufreadBytes(OutputStream outputStream, int int2)io.netty.buffer.ByteBufreadBytes(ByteBuffer byteBuffer)intreadBytes(FileChannel fileChannel, long long2, int int2)intreadBytes(GatheringByteChannel gatheringByteChannel, int int2)charreadChar()CharSequencereadCharSequence(int int2, Charset charset)ChunkSectionPosreadChunkSectionPos()Reads a chunk section position from this buf.DatereadDate()Reads a date from this buf.doublereadDouble()<T extends Enum<T>>
TreadEnumConstant(Class<T> enumClass)Reads an enum constant from this buf.intreaderIndex()io.netty.buffer.ByteBufreaderIndex(int int2)floatreadFloat()IdentifierreadIdentifier()Reads an identifier from this buf.intreadInt()int[]readIntArray()Reads an array of primitive ints from this buf.int[]readIntArray(int maxSize)Reads an array of primitive ints from this buf.intreadIntLE()ItemStackreadItemStack()Reads an item stack from this buf.longreadLong()long[]readLongArray(long[] toArray)Reads an array of primitive longs from this buf.long[]readLongArray(long[] toArray, int maxSize)Reads an array of primitive longs from this buf.longreadLongLE()intreadMedium()intreadMediumLE()NbtCompoundreadNbt()Reads an NBT compound from this buf.NbtCompoundreadNbt(NbtTagSizeTracker sizeTracker)Reads an NBT compound from this buf.io.netty.buffer.ByteBufreadRetainedSlice(int int2)shortreadShort()shortreadShortLE()io.netty.buffer.ByteBufreadSlice(int int2)StringreadString()Reads a string from this buf.StringreadString(int maxLength)Reads a string from this buf.TextreadText()Reads a text from this buf.NbtCompoundreadUnlimitedNbt()Reads an NBT compound from this buf.shortreadUnsignedByte()longreadUnsignedInt()longreadUnsignedIntLE()intreadUnsignedMedium()intreadUnsignedMediumLE()intreadUnsignedShort()intreadUnsignedShortLE()UUIDreadUuid()Reads a UUID (universally unique identifier) from this buf.intreadVarInt()Reads a single var int from this buf.longreadVarLong()Reads a single var long from this buf.intrefCnt()booleanrelease()booleanrelease(int int2)io.netty.buffer.ByteBufresetReaderIndex()io.netty.buffer.ByteBufresetWriterIndex()io.netty.buffer.ByteBufretain()io.netty.buffer.ByteBufretain(int int2)io.netty.buffer.ByteBufretainedDuplicate()io.netty.buffer.ByteBufretainedSlice()io.netty.buffer.ByteBufretainedSlice(int int2, int int3)io.netty.buffer.ByteBufsetBoolean(int int2, boolean bool)io.netty.buffer.ByteBufsetByte(int int2, int int3)io.netty.buffer.ByteBufsetBytes(int int2, byte[] byte2)io.netty.buffer.ByteBufsetBytes(int int2, byte[] byte2, int int3, int int4)io.netty.buffer.ByteBufsetBytes(int int2, io.netty.buffer.ByteBuf byteBuf)io.netty.buffer.ByteBufsetBytes(int int2, io.netty.buffer.ByteBuf byteBuf, int int3)io.netty.buffer.ByteBufsetBytes(int int2, io.netty.buffer.ByteBuf byteBuf, int int3, int int4)intsetBytes(int int2, InputStream inputStream, int int3)io.netty.buffer.ByteBufsetBytes(int int2, ByteBuffer byteBuffer)intsetBytes(int int2, FileChannel fileChannel, long long2, int int3)intsetBytes(int int2, ScatteringByteChannel scatteringByteChannel, int int3)io.netty.buffer.ByteBufsetChar(int int2, int int3)intsetCharSequence(int int2, CharSequence charSequence, Charset charset)io.netty.buffer.ByteBufsetDouble(int int2, double double2)io.netty.buffer.ByteBufsetFloat(int int2, float float2)io.netty.buffer.ByteBufsetIndex(int int2, int int3)io.netty.buffer.ByteBufsetInt(int int2, int int3)io.netty.buffer.ByteBufsetIntLE(int int2, int int3)io.netty.buffer.ByteBufsetLong(int int2, long long2)io.netty.buffer.ByteBufsetLongLE(int int2, long long2)io.netty.buffer.ByteBufsetMedium(int int2, int int3)io.netty.buffer.ByteBufsetMediumLE(int int2, int int3)io.netty.buffer.ByteBufsetShort(int int2, int int3)io.netty.buffer.ByteBufsetShortLE(int int2, int int3)io.netty.buffer.ByteBufsetZero(int int2, int int3)io.netty.buffer.ByteBufskipBytes(int int2)io.netty.buffer.ByteBufslice()io.netty.buffer.ByteBufslice(int int2, int int3)StringtoString()StringtoString(int int2, int int3, Charset charset)StringtoString(Charset charset)io.netty.buffer.ByteBuftouch()io.netty.buffer.ByteBuftouch(Object object)io.netty.buffer.ByteBufunwrap()intwritableBytes()voidwriteBlockHitResult(BlockHitResult hitResult)Writes a block hit result to this buf.PacketByteBufwriteBlockPos(BlockPos pos)Writes a block position to this buf.io.netty.buffer.ByteBufwriteBoolean(boolean bool)io.netty.buffer.ByteBufwriteByte(int int2)PacketByteBufwriteByteArray(byte[] array)Writes an array of primitive bytes to this buf.io.netty.buffer.ByteBufwriteBytes(byte[] byte2)io.netty.buffer.ByteBufwriteBytes(byte[] byte2, int int2, int int3)io.netty.buffer.ByteBufwriteBytes(io.netty.buffer.ByteBuf byteBuf)io.netty.buffer.ByteBufwriteBytes(io.netty.buffer.ByteBuf byteBuf, int int2)io.netty.buffer.ByteBufwriteBytes(io.netty.buffer.ByteBuf byteBuf, int int2, int int3)intwriteBytes(InputStream inputStream, int int2)io.netty.buffer.ByteBufwriteBytes(ByteBuffer byteBuffer)intwriteBytes(FileChannel fileChannel, long long2, int int2)intwriteBytes(ScatteringByteChannel scatteringByteChannel, int int2)io.netty.buffer.ByteBufwriteChar(int int2)intwriteCharSequence(CharSequence charSequence, Charset charset)PacketByteBufwriteDate(Date date)Writes a date to this buf.io.netty.buffer.ByteBufwriteDouble(double double2)PacketByteBufwriteEnumConstant(Enum<?> instance)Writes an enum constant to this buf.io.netty.buffer.ByteBufwriteFloat(float float2)PacketByteBufwriteIdentifier(Identifier id)Writes an identifier to this buf.io.netty.buffer.ByteBufwriteInt(int int2)PacketByteBufwriteIntArray(int[] array)Writes an array of primitive ints to this buf.io.netty.buffer.ByteBufwriteIntLE(int int2)PacketByteBufwriteItemStack(ItemStack stack)Writes an item stack to this buf.io.netty.buffer.ByteBufwriteLong(long long2)PacketByteBufwriteLongArray(long[] array)Writes an array of primitive longs to this buf.io.netty.buffer.ByteBufwriteLongLE(long long2)io.netty.buffer.ByteBufwriteMedium(int int2)io.netty.buffer.ByteBufwriteMediumLE(int int2)PacketByteBufwriteNbt(NbtCompound compound)Writes an NBT compound to this buf.intwriterIndex()io.netty.buffer.ByteBufwriterIndex(int int2)io.netty.buffer.ByteBufwriteShort(int int2)io.netty.buffer.ByteBufwriteShortLE(int int2)PacketByteBufwriteString(String string)Writes a string to this buf.PacketByteBufwriteString(String string, int maxLength)Writes a string to this buf.PacketByteBufwriteText(Text text)Writes a text to this buf.PacketByteBufwriteUuid(UUID uuid)Writes a UUID (universally unique identifier) to this buf.PacketByteBufwriteVarInt(int value)Writes a single var int to this buf.PacketByteBufwriteVarLong(long value)Writes a single var long to this buf.io.netty.buffer.ByteBufwriteZero(int int2)Methods inherited from class io.netty.buffer.ByteBuf
getDoubleLE, getFloatLE, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
-
Field Details
-
parent
private final io.netty.buffer.ByteBuf parent
-
-
Constructor Details
-
PacketByteBuf
public PacketByteBuf(io.netty.buffer.ByteBuf byteBuf)
-
-
Method Details
-
getVarIntLength
public static int getVarIntLength(int value)- Parameters:
value- the value to encode- Returns:
- the number of bytes a var int
valueuses
-
decode
public <T> T decode(com.mojang.serialization.Codec<T> codec)Reads an object from this buf as a compound NBT with the given codec.- Type Parameters:
T- the decoded object's type- Parameters:
codec- the codec to decode the object- Returns:
- the read object
- Throws:
io.netty.handler.codec.EncoderException- if thecodecfails to decode the compound NBT- See Also:
encode(Codec, Object)
-
encode
public <T> void encode(com.mojang.serialization.Codec<T> codec, T object)Writes an object to this buf as a compound NBT with the given codec.- Type Parameters:
T- the encoded object's type- Parameters:
codec- the codec to encode the objectobject- the object to write to this buf- Throws:
io.netty.handler.codec.EncoderException- if thecodecfails to encode the compound NBT- See Also:
decode(Codec)
-
writeByteArray
Writes an array of primitive bytes to this buf. The array first has a var int indicating its length, followed by the actual bytes.- Parameters:
array- the array to write- Returns:
- this buf, for chaining
- See Also:
readByteArray()
-
readByteArray
public byte[] readByteArray()Reads an array of primitive bytes from this buf. The array first has a var int indicating its length, followed by the actual bytes. The array does not have a length limit.- Returns:
- the read byte array
- See Also:
readByteArray(int),writeByteArray(byte[])
-
readByteArray
public byte[] readByteArray(int maxSize)Reads an array of primitive bytes from this buf. The array first has a var int indicating its length, followed by the actual bytes. The array has a length limit given bymaxSize.- Parameters:
maxSize- the max length of the read array- Returns:
- the read byte array
- Throws:
io.netty.handler.codec.DecoderException- if the read array has a length overmaxSize- See Also:
readByteArray(),writeByteArray(byte[])
-
writeIntArray
Writes an array of primitive ints to this buf. The array first has a var int indicating its length, followed by the var int entries.- Parameters:
array- the array to write- Returns:
- this buf, for chaining
- See Also:
readIntArray(int),writeIntArray(int[])
-
readIntArray
public int[] readIntArray()Reads an array of primitive ints from this buf. The array first has a var int indicating its length, followed by the var int entries. The array does not have a length limit.- Returns:
- the read byte array
- See Also:
readIntArray(int),writeIntArray(int[])
-
readIntArray
public int[] readIntArray(int maxSize)Reads an array of primitive ints from this buf. The array first has a var int indicating its length, followed by the var int entries. The array has a length limit given bymaxSize.- Parameters:
maxSize- the max length of the read array- Returns:
- the read byte array
- Throws:
io.netty.handler.codec.DecoderException- if the read array has a length overmaxSize- See Also:
readIntArray(),writeIntArray(int[])
-
writeLongArray
Writes an array of primitive longs to this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values.- Parameters:
array- the array to write- Returns:
- this buf, for chaining
- See Also:
readLongArray(long[])
-
readLongArray
Reads an array of primitive longs from this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values. The array does not have a length limit.Only when
toArrayis notnullandtoArray.lengthequals to the length var int read will thetoArraybe reused and returned; otherwise, a new array of proper size is created.- Parameters:
toArray- the array to reuse- Returns:
- the read long array
- See Also:
writeLongArray(long[]),readLongArray(long[], int)
-
readLongArray
Reads an array of primitive longs from this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values. The array has a length limit ofmaxSize.Only when
toArrayis notnullandtoArray.lengthequals to the length var int read will thetoArraybe reused and returned; otherwise, a new array of proper size is created.- Parameters:
toArray- the array to reusemaxSize- the max length of the read array- Returns:
- the read long array
- Throws:
io.netty.handler.codec.DecoderException- if the read array has a length overmaxSize- See Also:
writeLongArray(long[]),readLongArray(long[])
-
readBlockPos
Reads a block position from this buf. A block position is represented by a regular long.- Returns:
- the read block pos
- See Also:
writeBlockPos(BlockPos)
-
writeBlockPos
Writes a block position to this buf. A block position is represented by a regular long.- Parameters:
pos- the pos to write- Returns:
- this buf, for chaining
- See Also:
readBlockPos()
-
readChunkSectionPos
Reads a chunk section position from this buf. A chunk section position is represented by a regular long.- Returns:
- the read chunk section pos
-
readText
Reads a text from this buf. A text is represented by a JSON string with max length262144.- Returns:
- the read text
- Throws:
io.netty.handler.codec.DecoderException- if the JSON string read exceeds262144in length- See Also:
writeText(Text)
-
writeText
Writes a text to this buf. A text is represented by a JSON string with max length262144.- Parameters:
text- the text to write- Returns:
- this buf, for chaining
- Throws:
io.netty.handler.codec.EncoderException- if the JSON string written exceeds262144in length- See Also:
readText()
-
readEnumConstant
Reads an enum constant from this buf. An enum constant is represented by a var int indicating its ordinal.- Parameters:
enumClass- the enum class, for constant lookup- Returns:
- the read enum constant
- See Also:
writeEnumConstant(Enum)
-
writeEnumConstant
Writes an enum constant to this buf. An enum constant is represented by a var int indicating its ordinal.- Parameters:
instance- the enum constant to write- Returns:
- this buf, for chaining
- See Also:
readEnumConstant(Class)
-
readVarInt
public int readVarInt()Reads a single var int from this buf.- Returns:
- the value read
- See Also:
writeVarInt(int)
-
readVarLong
public long readVarLong()Reads a single var long from this buf.- Returns:
- the value read
- See Also:
writeVarLong(long)
-
writeUuid
Writes a UUID (universally unique identifier) to this buf. A UUID is represented by two regular longs.- Parameters:
uuid- the UUID to write- Returns:
- this buf, for chaining
- See Also:
readUuid()
-
readUuid
Reads a UUID (universally unique identifier) from this buf. A UUID is represented by two regular longs.- Returns:
- the read UUID
- See Also:
writeUuid(UUID)
-
writeVarInt
Writes a single var int to this buf.Compared to regular ints, var ints may use less bytes (ranging from 1 to 5, where regular ints use 4) when representing smaller positive numbers.
- Parameters:
value- the value to write- Returns:
- this buf, for chaining
- See Also:
readVarInt(),getVarIntLength(int)
-
writeVarLong
Writes a single var long to this buf.Compared to regular longs, var longs may use less bytes when representing smaller positive numbers.
- Parameters:
value- the value to write- Returns:
- this buf, for chaining
- See Also:
readVarLong()
-
writeNbt
Writes an NBT compound to this buf. The binary representation of NBT is handled byNbtIo. Ifcompoundisnull, it is treated as an NBT null.- Parameters:
compound- the compound to write- Returns:
- this buf, for chaining
- Throws:
io.netty.handler.codec.EncoderException- if the NBT cannot be written- See Also:
readNbt(),readUnlimitedNbt(),readNbt(NbtTagSizeTracker)
-
readNbt
Reads an NBT compound from this buf. The binary representation of NBT is handled byNbtIo. If an NBT null is encountered, this method returnsnull. The compound can have a maximum size of2097152bytes.- Returns:
- the read compound, may be
null - Throws:
io.netty.handler.codec.EncoderException- if the NBT cannot be readRuntimeException- if the compound exceeds the allowed maximum size- See Also:
writeNbt(NbtCompound),readUnlimitedNbt(),readNbt(NbtTagSizeTracker)
-
readUnlimitedNbt
Reads an NBT compound from this buf. The binary representation of NBT is handled byNbtIo. If an NBT null is encountered, this method returnsnull. The compound does not have a size limit.- Returns:
- the read compound, may be
null - Throws:
io.netty.handler.codec.EncoderException- if the NBT cannot be read- See Also:
writeNbt(NbtCompound),readNbt(),readNbt(NbtTagSizeTracker)
-
readNbt
Reads an NBT compound from this buf. The binary representation of NBT is handled byNbtIo. If an NBT null is encountered, this method returnsnull. The compound can have a maximum size controlled by thesizeTracker.- Returns:
- the read compound, may be
null - Throws:
io.netty.handler.codec.EncoderException- if the NBT cannot be readRuntimeException- if the compound exceeds the allowed maximum size- See Also:
writeNbt(NbtCompound),readNbt(),readUnlimitedNbt()
-
writeItemStack
Writes an item stack to this buf. An item stack is represented by a boolean indicating whether it exists; if it exists, it is followed by a var int for its raw id, a byte for its count, and an NBT compound for its tag.- Parameters:
stack- the stack to write- Returns:
- this buf, for chaining
- See Also:
readItemStack()
-
readItemStack
Reads an item stack from this buf. An item stack is represented by a boolean indicating whether it exists; if it exists, it is followed by a var int for its raw id, a byte for its count, and an NBT compound for its tag.- Returns:
- the read item stack
- See Also:
writeItemStack(ItemStack)
-
readString
Reads a string from this buf. A string is represented by a byte array of its UTF-8 data. The string can have a maximum length of32767.- Returns:
- the string read
- Throws:
io.netty.handler.codec.DecoderException- if the string read exceeds the maximum length- See Also:
readString(int),writeString(String),writeString(String, int)
-
readString
Reads a string from this buf. A string is represented by a byte array of its UTF-8 data. The string can have a maximum length ofmaxLength.- Parameters:
maxLength- the maximum length of the string read- Returns:
- the string read
- Throws:
io.netty.handler.codec.DecoderException- if the string read is longer thanmaxLength- See Also:
readString(),writeString(String),writeString(String, int)
-
writeString
Writes a string to this buf. A string is represented by a byte array of its UTF-8 data. That byte array can have a maximum length of32767.- Parameters:
string- the string to write- Returns:
- this buf, for chaining
- Throws:
io.netty.handler.codec.EncoderException- if the byte array of the string to write is longer than32767- See Also:
readString(),readString(int),writeString(String, int)
-
writeString
Writes a string to this buf. A string is represented by a byte array of its UTF-8 data. That byte array can have a maximum length ofmaxLength.- Parameters:
string- the string to writemaxLength- the max length of the byte array- Returns:
- this buf, for chaining
- Throws:
io.netty.handler.codec.EncoderException- if the byte array of the string to write is longer thanmaxLength- See Also:
readString(),readString(int),writeString(String)
-
readIdentifier
Reads an identifier from this buf. An identifier is represented by its string form. The read identifier's string form can have a max length of32767.- Returns:
- the read identifier
- Throws:
io.netty.handler.codec.DecoderException- if the identifier's string form is longer than32767- See Also:
writeIdentifier(Identifier)
-
writeIdentifier
Writes an identifier to this buf. An identifier is represented by its string form. The written identifier's byte array can have a max length of32767.- Parameters:
id- the identifier to write- Returns:
- the read identifier
- Throws:
io.netty.handler.codec.EncoderException- if theid's byte array is longer than32767- See Also:
readIdentifier()
-
readDate
Reads a date from this buf. A date is represented by its time, a regular long.- Returns:
- the read date
- See Also:
writeDate(Date)
-
writeDate
Writes a date to this buf. A date is represented by its time, a regular long.- Parameters:
date- the date to write- Returns:
- this buf, for chaining
- See Also:
readDate()
-
readBlockHitResult
Reads a block hit result from this buf. A block hit result is represented by a block position, a direction enum constant, 3 floats for the hit offset position, and a boolean for whether the hit was inside a block.- Returns:
- the read block hit result
- See Also:
writeBlockHitResult(BlockHitResult)
-
writeBlockHitResult
Writes a block hit result to this buf. A block hit result is represented by a block position, a direction enum constant, 3 floats for the hit offset position, and a boolean for whether the hit was inside a block.- Parameters:
hitResult- the block hit result to write- See Also:
readBlockHitResult()
-
capacity
public int capacity()- Specified by:
capacityin classio.netty.buffer.ByteBuf
-
capacity
public io.netty.buffer.ByteBuf capacity(int int2)- Specified by:
capacityin classio.netty.buffer.ByteBuf
-
maxCapacity
public int maxCapacity()- Specified by:
maxCapacityin classio.netty.buffer.ByteBuf
-
alloc
public io.netty.buffer.ByteBufAllocator alloc()- Specified by:
allocin classio.netty.buffer.ByteBuf
-
order
- Specified by:
orderin classio.netty.buffer.ByteBuf
-
order
- Specified by:
orderin classio.netty.buffer.ByteBuf
-
unwrap
public io.netty.buffer.ByteBuf unwrap()- Specified by:
unwrapin classio.netty.buffer.ByteBuf
-
isDirect
public boolean isDirect()- Specified by:
isDirectin classio.netty.buffer.ByteBuf
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classio.netty.buffer.ByteBuf
-
asReadOnly
public io.netty.buffer.ByteBuf asReadOnly()- Specified by:
asReadOnlyin classio.netty.buffer.ByteBuf
-
readerIndex
public int readerIndex()- Specified by:
readerIndexin classio.netty.buffer.ByteBuf
-
readerIndex
public io.netty.buffer.ByteBuf readerIndex(int int2)- Specified by:
readerIndexin classio.netty.buffer.ByteBuf
-
writerIndex
public int writerIndex()- Specified by:
writerIndexin classio.netty.buffer.ByteBuf
-
writerIndex
public io.netty.buffer.ByteBuf writerIndex(int int2)- Specified by:
writerIndexin classio.netty.buffer.ByteBuf
-
setIndex
public io.netty.buffer.ByteBuf setIndex(int int2, int int3)- Specified by:
setIndexin classio.netty.buffer.ByteBuf
-
readableBytes
public int readableBytes()- Specified by:
readableBytesin classio.netty.buffer.ByteBuf
-
writableBytes
public int writableBytes()- Specified by:
writableBytesin classio.netty.buffer.ByteBuf
-
maxWritableBytes
public int maxWritableBytes()- Specified by:
maxWritableBytesin classio.netty.buffer.ByteBuf
-
isReadable
public boolean isReadable()- Specified by:
isReadablein classio.netty.buffer.ByteBuf
-
isReadable
public boolean isReadable(int int2)- Specified by:
isReadablein classio.netty.buffer.ByteBuf
-
isWritable
public boolean isWritable()- Specified by:
isWritablein classio.netty.buffer.ByteBuf
-
isWritable
public boolean isWritable(int int2)- Specified by:
isWritablein classio.netty.buffer.ByteBuf
-
clear
public io.netty.buffer.ByteBuf clear()- Specified by:
clearin classio.netty.buffer.ByteBuf
-
markReaderIndex
public io.netty.buffer.ByteBuf markReaderIndex()- Specified by:
markReaderIndexin classio.netty.buffer.ByteBuf
-
resetReaderIndex
public io.netty.buffer.ByteBuf resetReaderIndex()- Specified by:
resetReaderIndexin classio.netty.buffer.ByteBuf
-
markWriterIndex
public io.netty.buffer.ByteBuf markWriterIndex()- Specified by:
markWriterIndexin classio.netty.buffer.ByteBuf
-
resetWriterIndex
public io.netty.buffer.ByteBuf resetWriterIndex()- Specified by:
resetWriterIndexin classio.netty.buffer.ByteBuf
-
discardReadBytes
public io.netty.buffer.ByteBuf discardReadBytes()- Specified by:
discardReadBytesin classio.netty.buffer.ByteBuf
-
discardSomeReadBytes
public io.netty.buffer.ByteBuf discardSomeReadBytes()- Specified by:
discardSomeReadBytesin classio.netty.buffer.ByteBuf
-
ensureWritable
public io.netty.buffer.ByteBuf ensureWritable(int int2)- Specified by:
ensureWritablein classio.netty.buffer.ByteBuf
-
ensureWritable
public int ensureWritable(int int2, boolean bool)- Specified by:
ensureWritablein classio.netty.buffer.ByteBuf
-
getBoolean
public boolean getBoolean(int int2)- Specified by:
getBooleanin classio.netty.buffer.ByteBuf
-
getByte
public byte getByte(int int2)- Specified by:
getBytein classio.netty.buffer.ByteBuf
-
getUnsignedByte
public short getUnsignedByte(int int2)- Specified by:
getUnsignedBytein classio.netty.buffer.ByteBuf
-
getShort
public short getShort(int int2)- Specified by:
getShortin classio.netty.buffer.ByteBuf
-
getShortLE
public short getShortLE(int int2)- Specified by:
getShortLEin classio.netty.buffer.ByteBuf
-
getUnsignedShort
public int getUnsignedShort(int int2)- Specified by:
getUnsignedShortin classio.netty.buffer.ByteBuf
-
getUnsignedShortLE
public int getUnsignedShortLE(int int2)- Specified by:
getUnsignedShortLEin classio.netty.buffer.ByteBuf
-
getMedium
public int getMedium(int int2)- Specified by:
getMediumin classio.netty.buffer.ByteBuf
-
getMediumLE
public int getMediumLE(int int2)- Specified by:
getMediumLEin classio.netty.buffer.ByteBuf
-
getUnsignedMedium
public int getUnsignedMedium(int int2)- Specified by:
getUnsignedMediumin classio.netty.buffer.ByteBuf
-
getUnsignedMediumLE
public int getUnsignedMediumLE(int int2)- Specified by:
getUnsignedMediumLEin classio.netty.buffer.ByteBuf
-
getInt
public int getInt(int int2)- Specified by:
getIntin classio.netty.buffer.ByteBuf
-
getIntLE
public int getIntLE(int int2)- Specified by:
getIntLEin classio.netty.buffer.ByteBuf
-
getUnsignedInt
public long getUnsignedInt(int int2)- Specified by:
getUnsignedIntin classio.netty.buffer.ByteBuf
-
getUnsignedIntLE
public long getUnsignedIntLE(int int2)- Specified by:
getUnsignedIntLEin classio.netty.buffer.ByteBuf
-
getLong
public long getLong(int int2)- Specified by:
getLongin classio.netty.buffer.ByteBuf
-
getLongLE
public long getLongLE(int int2)- Specified by:
getLongLEin classio.netty.buffer.ByteBuf
-
getChar
public char getChar(int int2)- Specified by:
getCharin classio.netty.buffer.ByteBuf
-
getFloat
public float getFloat(int int2)- Specified by:
getFloatin classio.netty.buffer.ByteBuf
-
getDouble
public double getDouble(int int2)- Specified by:
getDoublein classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int int2, io.netty.buffer.ByteBuf byteBuf)- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int int2, io.netty.buffer.ByteBuf byteBuf, int int3)- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int int2, io.netty.buffer.ByteBuf byteBuf, int int3, int int4)- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int int2, byte[] byte2)- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int int2, byte[] byte2, int int3, int int4)- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int int2, OutputStream outputStream, int int3) throws IOException- Specified by:
getBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
getBytes
public int getBytes(int int2, GatheringByteChannel gatheringByteChannel, int int3) throws IOException- Specified by:
getBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
getCharSequence
- Specified by:
getCharSequencein classio.netty.buffer.ByteBuf
-
setBoolean
public io.netty.buffer.ByteBuf setBoolean(int int2, boolean bool)- Specified by:
setBooleanin classio.netty.buffer.ByteBuf
-
setByte
public io.netty.buffer.ByteBuf setByte(int int2, int int3)- Specified by:
setBytein classio.netty.buffer.ByteBuf
-
setShort
public io.netty.buffer.ByteBuf setShort(int int2, int int3)- Specified by:
setShortin classio.netty.buffer.ByteBuf
-
setShortLE
public io.netty.buffer.ByteBuf setShortLE(int int2, int int3)- Specified by:
setShortLEin classio.netty.buffer.ByteBuf
-
setMedium
public io.netty.buffer.ByteBuf setMedium(int int2, int int3)- Specified by:
setMediumin classio.netty.buffer.ByteBuf
-
setMediumLE
public io.netty.buffer.ByteBuf setMediumLE(int int2, int int3)- Specified by:
setMediumLEin classio.netty.buffer.ByteBuf
-
setInt
public io.netty.buffer.ByteBuf setInt(int int2, int int3)- Specified by:
setIntin classio.netty.buffer.ByteBuf
-
setIntLE
public io.netty.buffer.ByteBuf setIntLE(int int2, int int3)- Specified by:
setIntLEin classio.netty.buffer.ByteBuf
-
setLong
public io.netty.buffer.ByteBuf setLong(int int2, long long2)- Specified by:
setLongin classio.netty.buffer.ByteBuf
-
setLongLE
public io.netty.buffer.ByteBuf setLongLE(int int2, long long2)- Specified by:
setLongLEin classio.netty.buffer.ByteBuf
-
setChar
public io.netty.buffer.ByteBuf setChar(int int2, int int3)- Specified by:
setCharin classio.netty.buffer.ByteBuf
-
setFloat
public io.netty.buffer.ByteBuf setFloat(int int2, float float2)- Specified by:
setFloatin classio.netty.buffer.ByteBuf
-
setDouble
public io.netty.buffer.ByteBuf setDouble(int int2, double double2)- Specified by:
setDoublein classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int int2, io.netty.buffer.ByteBuf byteBuf)- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int int2, io.netty.buffer.ByteBuf byteBuf, int int3)- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int int2, io.netty.buffer.ByteBuf byteBuf, int int3, int int4)- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int int2, byte[] byte2)- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int int2, byte[] byte2, int int3, int int4)- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
setBytes
public int setBytes(int int2, ScatteringByteChannel scatteringByteChannel, int int3) throws IOException- Specified by:
setBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
setZero
public io.netty.buffer.ByteBuf setZero(int int2, int int3)- Specified by:
setZeroin classio.netty.buffer.ByteBuf
-
setCharSequence
- Specified by:
setCharSequencein classio.netty.buffer.ByteBuf
-
readBoolean
public boolean readBoolean()- Specified by:
readBooleanin classio.netty.buffer.ByteBuf
-
readByte
public byte readByte()- Specified by:
readBytein classio.netty.buffer.ByteBuf
-
readUnsignedByte
public short readUnsignedByte()- Specified by:
readUnsignedBytein classio.netty.buffer.ByteBuf
-
readShort
public short readShort()- Specified by:
readShortin classio.netty.buffer.ByteBuf
-
readShortLE
public short readShortLE()- Specified by:
readShortLEin classio.netty.buffer.ByteBuf
-
readUnsignedShort
public int readUnsignedShort()- Specified by:
readUnsignedShortin classio.netty.buffer.ByteBuf
-
readUnsignedShortLE
public int readUnsignedShortLE()- Specified by:
readUnsignedShortLEin classio.netty.buffer.ByteBuf
-
readMedium
public int readMedium()- Specified by:
readMediumin classio.netty.buffer.ByteBuf
-
readMediumLE
public int readMediumLE()- Specified by:
readMediumLEin classio.netty.buffer.ByteBuf
-
readUnsignedMedium
public int readUnsignedMedium()- Specified by:
readUnsignedMediumin classio.netty.buffer.ByteBuf
-
readUnsignedMediumLE
public int readUnsignedMediumLE()- Specified by:
readUnsignedMediumLEin classio.netty.buffer.ByteBuf
-
readInt
public int readInt()- Specified by:
readIntin classio.netty.buffer.ByteBuf
-
readIntLE
public int readIntLE()- Specified by:
readIntLEin classio.netty.buffer.ByteBuf
-
readUnsignedInt
public long readUnsignedInt()- Specified by:
readUnsignedIntin classio.netty.buffer.ByteBuf
-
readUnsignedIntLE
public long readUnsignedIntLE()- Specified by:
readUnsignedIntLEin classio.netty.buffer.ByteBuf
-
readLong
public long readLong()- Specified by:
readLongin classio.netty.buffer.ByteBuf
-
readLongLE
public long readLongLE()- Specified by:
readLongLEin classio.netty.buffer.ByteBuf
-
readChar
public char readChar()- Specified by:
readCharin classio.netty.buffer.ByteBuf
-
readFloat
public float readFloat()- Specified by:
readFloatin classio.netty.buffer.ByteBuf
-
readDouble
public double readDouble()- Specified by:
readDoublein classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(int int2)- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readSlice
public io.netty.buffer.ByteBuf readSlice(int int2)- Specified by:
readSlicein classio.netty.buffer.ByteBuf
-
readRetainedSlice
public io.netty.buffer.ByteBuf readRetainedSlice(int int2)- Specified by:
readRetainedSlicein classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBuf byteBuf)- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBuf byteBuf, int int2)- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBuf byteBuf, int int2, int int3)- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(byte[] byte2)- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(byte[] byte2, int int2, int int3)- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
readCharSequence
- Specified by:
readCharSequencein classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
skipBytes
public io.netty.buffer.ByteBuf skipBytes(int int2)- Specified by:
skipBytesin classio.netty.buffer.ByteBuf
-
writeBoolean
public io.netty.buffer.ByteBuf writeBoolean(boolean bool)- Specified by:
writeBooleanin classio.netty.buffer.ByteBuf
-
writeByte
public io.netty.buffer.ByteBuf writeByte(int int2)- Specified by:
writeBytein classio.netty.buffer.ByteBuf
-
writeShort
public io.netty.buffer.ByteBuf writeShort(int int2)- Specified by:
writeShortin classio.netty.buffer.ByteBuf
-
writeShortLE
public io.netty.buffer.ByteBuf writeShortLE(int int2)- Specified by:
writeShortLEin classio.netty.buffer.ByteBuf
-
writeMedium
public io.netty.buffer.ByteBuf writeMedium(int int2)- Specified by:
writeMediumin classio.netty.buffer.ByteBuf
-
writeMediumLE
public io.netty.buffer.ByteBuf writeMediumLE(int int2)- Specified by:
writeMediumLEin classio.netty.buffer.ByteBuf
-
writeInt
public io.netty.buffer.ByteBuf writeInt(int int2)- Specified by:
writeIntin classio.netty.buffer.ByteBuf
-
writeIntLE
public io.netty.buffer.ByteBuf writeIntLE(int int2)- Specified by:
writeIntLEin classio.netty.buffer.ByteBuf
-
writeLong
public io.netty.buffer.ByteBuf writeLong(long long2)- Specified by:
writeLongin classio.netty.buffer.ByteBuf
-
writeLongLE
public io.netty.buffer.ByteBuf writeLongLE(long long2)- Specified by:
writeLongLEin classio.netty.buffer.ByteBuf
-
writeChar
public io.netty.buffer.ByteBuf writeChar(int int2)- Specified by:
writeCharin classio.netty.buffer.ByteBuf
-
writeFloat
public io.netty.buffer.ByteBuf writeFloat(float float2)- Specified by:
writeFloatin classio.netty.buffer.ByteBuf
-
writeDouble
public io.netty.buffer.ByteBuf writeDouble(double double2)- Specified by:
writeDoublein classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(io.netty.buffer.ByteBuf byteBuf)- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(io.netty.buffer.ByteBuf byteBuf, int int2)- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(io.netty.buffer.ByteBuf byteBuf, int int2, int int3)- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(byte[] byte2)- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(byte[] byte2, int int2, int int3)- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
writeZero
public io.netty.buffer.ByteBuf writeZero(int int2)- Specified by:
writeZeroin classio.netty.buffer.ByteBuf
-
writeCharSequence
- Specified by:
writeCharSequencein classio.netty.buffer.ByteBuf
-
indexOf
public int indexOf(int int2, int int3, byte byte2)- Specified by:
indexOfin classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(byte byte2)- Specified by:
bytesBeforein classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int int2, byte byte2)- Specified by:
bytesBeforein classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int int2, int int3, byte byte2)- Specified by:
bytesBeforein classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(io.netty.util.ByteProcessor byteProcessor)- Specified by:
forEachBytein classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(int int2, int int3, io.netty.util.ByteProcessor byteProcessor)- Specified by:
forEachBytein classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(io.netty.util.ByteProcessor byteProcessor)- Specified by:
forEachByteDescin classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(int int2, int int3, io.netty.util.ByteProcessor byteProcessor)- Specified by:
forEachByteDescin classio.netty.buffer.ByteBuf
-
copy
public io.netty.buffer.ByteBuf copy()- Specified by:
copyin classio.netty.buffer.ByteBuf
-
copy
public io.netty.buffer.ByteBuf copy(int int2, int int3)- Specified by:
copyin classio.netty.buffer.ByteBuf
-
slice
public io.netty.buffer.ByteBuf slice()- Specified by:
slicein classio.netty.buffer.ByteBuf
-
retainedSlice
public io.netty.buffer.ByteBuf retainedSlice()- Specified by:
retainedSlicein classio.netty.buffer.ByteBuf
-
slice
public io.netty.buffer.ByteBuf slice(int int2, int int3)- Specified by:
slicein classio.netty.buffer.ByteBuf
-
retainedSlice
public io.netty.buffer.ByteBuf retainedSlice(int int2, int int3)- Specified by:
retainedSlicein classio.netty.buffer.ByteBuf
-
duplicate
public io.netty.buffer.ByteBuf duplicate()- Specified by:
duplicatein classio.netty.buffer.ByteBuf
-
retainedDuplicate
public io.netty.buffer.ByteBuf retainedDuplicate()- Specified by:
retainedDuplicatein classio.netty.buffer.ByteBuf
-
nioBufferCount
public int nioBufferCount()- Specified by:
nioBufferCountin classio.netty.buffer.ByteBuf
-
nioBuffer
- Specified by:
nioBufferin classio.netty.buffer.ByteBuf
-
nioBuffer
- Specified by:
nioBufferin classio.netty.buffer.ByteBuf
-
internalNioBuffer
- Specified by:
internalNioBufferin classio.netty.buffer.ByteBuf
-
nioBuffers
- Specified by:
nioBuffersin classio.netty.buffer.ByteBuf
-
nioBuffers
- Specified by:
nioBuffersin classio.netty.buffer.ByteBuf
-
hasArray
public boolean hasArray()- Specified by:
hasArrayin classio.netty.buffer.ByteBuf
-
array
public byte[] array()- Specified by:
arrayin classio.netty.buffer.ByteBuf
-
arrayOffset
public int arrayOffset()- Specified by:
arrayOffsetin classio.netty.buffer.ByteBuf
-
hasMemoryAddress
public boolean hasMemoryAddress()- Specified by:
hasMemoryAddressin classio.netty.buffer.ByteBuf
-
memoryAddress
public long memoryAddress()- Specified by:
memoryAddressin classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toStringin classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toStringin classio.netty.buffer.ByteBuf
-
hashCode
public int hashCode()- Specified by:
hashCodein classio.netty.buffer.ByteBuf
-
equals
- Specified by:
equalsin classio.netty.buffer.ByteBuf
-
compareTo
public int compareTo(io.netty.buffer.ByteBuf byteBuf)- Specified by:
compareToin interfaceComparable<io.netty.buffer.ByteBuf>- Specified by:
compareToin classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toStringin classio.netty.buffer.ByteBuf
-
retain
public io.netty.buffer.ByteBuf retain(int int2)- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Specified by:
retainin classio.netty.buffer.ByteBuf
-
retain
public io.netty.buffer.ByteBuf retain()- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Specified by:
retainin classio.netty.buffer.ByteBuf
-
touch
public io.netty.buffer.ByteBuf touch()- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Specified by:
touchin classio.netty.buffer.ByteBuf
-
touch
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Specified by:
touchin classio.netty.buffer.ByteBuf
-
refCnt
public int refCnt() -
release
public boolean release() -
release
public boolean release(int int2)
-