Package net.minecraft.network
Class FriendlyByteBuf
java.lang.Object
io.netty.buffer.ByteBuf
net.minecraft.network.FriendlyByteBuf
- All Implemented Interfaces:
io.netty.buffer.ByteBufConvertible
,io.netty.util.ReferenceCounted
,Comparable<io.netty.buffer.ByteBuf>
,IFriendlyByteBufExtension
- Direct Known Subclasses:
RegistryFriendlyByteBuf
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
private static final com.google.gson.Gson
static final int
private static final int
private static final int
static final short
private static final int
private final io.netty.buffer.ByteBuf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.buffer.ByteBufAllocator
alloc()
byte[]
array()
int
io.netty.buffer.ByteBuf
int
bytesBefore
(byte pValue) int
bytesBefore
(int pLength, byte pValue) int
bytesBefore
(int pIndex, int pLength, byte pValue) int
capacity()
capacity
(int pNewCapacity) clear()
int
compareTo
(io.netty.buffer.ByteBuf p_130123_) io.netty.buffer.ByteBuf
copy()
io.netty.buffer.ByteBuf
copy
(int p_130128_, int p_130129_) io.netty.buffer.ByteBuf
ensureWritable
(int pSize) int
ensureWritable
(int pSize, boolean pForce) boolean
int
forEachByte
(int p_130146_, int p_130147_, io.netty.util.ByteProcessor p_130148_) int
forEachByte
(io.netty.util.ByteProcessor p_130150_) int
forEachByteDesc
(int p_130152_, int p_130153_, io.netty.util.ByteProcessor p_130154_) int
forEachByteDesc
(io.netty.util.ByteProcessor p_130156_) boolean
getBoolean
(int pIndex) byte
getByte
(int pIndex) getBytes
(int pIndex, byte[] pDestination) getBytes
(int pIndex, byte[] pDestination, int pDestinationIndex, int pLength) getBytes
(int p_296115_, io.netty.buffer.ByteBuf p_295805_) getBytes
(int p_294876_, io.netty.buffer.ByteBuf p_295864_, int p_294524_) getBytes
(int p_294107_, io.netty.buffer.ByteBuf p_296448_, int p_295017_, int p_294733_) getBytes
(int pIndex, OutputStream pOut, int pLength) getBytes
(int pIndex, ByteBuffer pDestination) int
getBytes
(int pIndex, FileChannel pOut, long pPosition, int pLength) int
getBytes
(int pIndex, GatheringByteChannel pOut, int pLength) char
getChar
(int pIndex) getCharSequence
(int pIndex, int pLength, Charset pCharset) double
getDouble
(int pIndex) float
getFloat
(int pIndex) int
getInt
(int pIndex) int
getIntLE
(int pIndex) long
getLong
(int pIndex) long
getLongLE
(int pIndex) int
getMedium
(int pIndex) int
getMediumLE
(int pIndex) short
getShort
(int pIndex) short
getShortLE
(int pIndex) io.netty.buffer.ByteBuf
short
getUnsignedByte
(int pIndex) long
getUnsignedInt
(int pIndex) long
getUnsignedIntLE
(int pIndex) int
getUnsignedMedium
(int pIndex) int
getUnsignedMediumLE
(int pIndex) int
getUnsignedShort
(int pIndex) int
getUnsignedShortLE
(int pIndex) boolean
hasArray()
int
hashCode()
boolean
int
indexOf
(int pFromIndex, int pToIndex, byte pValue) internalNioBuffer
(int pIndex, int pLength) boolean
boolean
isDirect()
boolean
boolean
isReadable
(int pSize) boolean
boolean
boolean
isWritable
(int pSize) static <T> IntFunction
<T> limitValue
(IntFunction<T> pFunction, int pLimit) int
int
int
long
nioBuffer
(int pIndex, int pLength) int
nioBuffers
(int pIndex, int pLength) order()
io.netty.buffer.ByteBuf
int
static BlockPos
readBlockPos
(io.netty.buffer.ByteBuf p_320037_) boolean
<T> T
readById
(IntFunction<T> pIdLookuo) byte
readByte()
byte[]
byte[]
readByteArray
(int pMaxLength) static byte[]
readByteArray
(io.netty.buffer.ByteBuf p_324567_) static byte[]
readByteArray
(io.netty.buffer.ByteBuf p_323774_, int p_324044_) readBytes
(byte[] pDestination) readBytes
(byte[] pDestination, int pDestinationIndex, int pLength) io.netty.buffer.ByteBuf
readBytes
(int p_130287_) readBytes
(io.netty.buffer.ByteBuf p_296080_) readBytes
(io.netty.buffer.ByteBuf p_296068_, int p_295259_) readBytes
(io.netty.buffer.ByteBuf p_295701_, int p_294970_, int p_294610_) readBytes
(OutputStream pOut, int pLength) readBytes
(ByteBuffer pDestination) int
readBytes
(FileChannel pOut, long pPosition, int pLength) int
readBytes
(GatheringByteChannel pOut, int pLength) char
readChar()
readCharSequence
(int pLength, Charset pCharset) <T,
C extends Collection<T>>
CreadCollection
(IntFunction<C> pCollectionFactory, StreamDecoder<? super FriendlyByteBuf, T> pElementReader) readDate()
double
<T extends Enum<T>>
TReads an enum of the given type T using the ordinal encoded as a VarInt from the buffer.readEnumSet
(Class<E> pEnumClass) int
readerIndex
(int pReaderIndex) readFixedBitSet
(int pSize) float
int
readInt()
it.unimi.dsi.fastutil.ints.IntList
int
<T> T
readJsonWithCodec
(com.mojang.serialization.Codec<T> p_273318_) <T> List
<T> readList
(StreamDecoder<? super FriendlyByteBuf, T> pElementReader) long
readLong()
long[]
long[]
readLongArray
(long[] pArray) Reads a length-prefixed array of longs from the buffer.long[]
readLongArray
(long[] pArray, int pMaxLength) Reads a length-prefixed array of longs with a maximum length from the buffer.long
<K,
V, M extends Map<K, V>>
MreadMap
(IntFunction<M> pMapFactory, StreamDecoder<? super FriendlyByteBuf, K> pKeyReader, StreamDecoder<? super FriendlyByteBuf, V> pValueReader) <K,
V> Map <K, V> readMap
(StreamDecoder<? super FriendlyByteBuf, K> pKeyReader, StreamDecoder<? super FriendlyByteBuf, V> pValueReader) int
int
readNbt()
static CompoundTag
readNbt
(io.netty.buffer.ByteBuf p_320394_) static Tag
readNbt
(io.netty.buffer.ByteBuf p_320170_, NbtAccounter p_320055_) readNbt
(NbtAccounter pNbtAccounter) static <T,
B extends io.netty.buffer.ByteBuf>
TreadNullable
(B p_324437_, StreamDecoder<? super B, T> p_324453_) <T> T
readNullable
(StreamDecoder<? super FriendlyByteBuf, T> pReader) <T> Optional
<T> readOptional
(StreamDecoder<? super FriendlyByteBuf, T> pReader) org.joml.Quaternionf
static org.joml.Quaternionf
readQuaternion
(io.netty.buffer.ByteBuf p_319961_) <T> ResourceKey
<? extends Registry<T>> <T> ResourceKey
<T> readResourceKey
(ResourceKey<? extends Registry<T>> pRegistryKey) io.netty.buffer.ByteBuf
readRetainedSlice
(int p_130328_) short
short
io.netty.buffer.ByteBuf
readSlice
(int p_130332_) short
long
long
int
int
int
int
readUtf()
readUtf
(int pMaxLength) Reads a string with a maximum length from this buffer.readUUID()
static UUID
readUUID
(io.netty.buffer.ByteBuf p_319877_) int
int[]
int[]
readVarIntArray
(int pMaxLength) Reads an array of VarInts with a maximum length from this buffer.long
readVec3()
org.joml.Vector3f
static org.joml.Vector3f
readVector3f
(io.netty.buffer.ByteBuf p_320362_) <T> T
readWithCodec
(com.mojang.serialization.DynamicOps<Tag> p_266903_, com.mojang.serialization.Codec<T> p_267107_, NbtAccounter p_295027_) Deprecated.<T> T
readWithCodecTrusted
(com.mojang.serialization.DynamicOps<Tag> p_295347_, com.mojang.serialization.Codec<T> p_296304_) Deprecated.void
readWithCount
(Consumer<FriendlyByteBuf> pReader) Read a VarInt N from this buffer, then reads N values by callingreader
.int
refCnt()
boolean
release()
boolean
release
(int pDecrement) retain()
retain
(int pIncrement) io.netty.buffer.ByteBuf
io.netty.buffer.ByteBuf
io.netty.buffer.ByteBuf
retainedSlice
(int p_130359_, int p_130360_) setBoolean
(int pIndex, boolean pValue) setByte
(int pIndex, int pValue) setBytes
(int pIndex, byte[] pSource) setBytes
(int pIndex, byte[] pSource, int pSourceIndex, int pLength) setBytes
(int p_294134_, io.netty.buffer.ByteBuf p_294238_) setBytes
(int p_295824_, io.netty.buffer.ByteBuf p_294581_, int p_295654_) setBytes
(int p_296236_, io.netty.buffer.ByteBuf p_295709_, int p_294354_, int p_295897_) int
setBytes
(int pIndex, InputStream pIn, int pLength) setBytes
(int pIndex, ByteBuffer pSource) int
setBytes
(int pIndex, FileChannel pIn, long pPosition, int pLength) int
setBytes
(int pIndex, ScatteringByteChannel pIn, int pLength) setChar
(int pIndex, int pValue) int
setCharSequence
(int pIndex, CharSequence pCharSequence, Charset pCharset) setDouble
(int pIndex, double pValue) setFloat
(int pIndex, float pValue) setIndex
(int pReaderIndex, int pWriterIndex) setInt
(int pIndex, int pValue) setIntLE
(int pIndex, int pValue) setLong
(int pIndex, long pValue) setLongLE
(int pIndex, long pValue) setMedium
(int pIndex, int pValue) setMediumLE
(int pIndex, int pValue) setShort
(int pIndex, int pValue) setShortLE
(int pIndex, int pValue) setZero
(int pIndex, int pLength) skipBytes
(int pLength) io.netty.buffer.ByteBuf
slice()
io.netty.buffer.ByteBuf
slice
(int p_130450_, int p_130451_) toString()
touch()
io.netty.buffer.ByteBuf
unwrap()
int
void
writeBitSet
(BitSet pBitSet) Write a BitSet as a long[].void
writeBlockHitResult
(BlockHitResult pResult) Write a BlockHitResult.static void
writeBlockPos
(io.netty.buffer.ByteBuf p_320943_, BlockPos p_320546_) writeBlockPos
(BlockPos pPos) Writes a BlockPos encoded as a long to the buffer.writeBoolean
(boolean pValue) <T> FriendlyByteBuf
writeById
(ToIntFunction<T> pIdGetter, T pValue) writeByte
(int pValue) writeByteArray
(byte[] pArray) static void
writeByteArray
(io.netty.buffer.ByteBuf p_324397_, byte[] p_324485_) writeBytes
(byte[] pSource) writeBytes
(byte[] pSource, int pSourceIndex, int pLength) writeBytes
(io.netty.buffer.ByteBuf p_295011_) writeBytes
(io.netty.buffer.ByteBuf p_295384_, int p_295311_) writeBytes
(io.netty.buffer.ByteBuf p_295348_, int p_294807_, int p_294737_) int
writeBytes
(InputStream pIn, int pLength) writeBytes
(ByteBuffer pSource) int
writeBytes
(FileChannel pIn, long pPosition, int pLength) int
writeBytes
(ScatteringByteChannel pIn, int pLength) writeChar
(int pValue) int
writeCharSequence
(CharSequence pCharSequence, Charset pCharset) writeChunkPos
(ChunkPos pChunkPos) Writes a ChunkPos encoded as a long to the buffer.<T> void
writeCollection
(Collection<T> pCollection, StreamEncoder<? super FriendlyByteBuf, T> pElementWriter) Write a timestamp as milliseconds since the unix epoch.writeDouble
(double pValue) Writes an enum of the given type T using the ordinal encoded as a VarInt to the buffer.<E extends Enum<E>>
voidwriteEnumSet
(EnumSet<E> pEnumSet, Class<E> pEnumClass) void
writeFixedBitSet
(BitSet pBitSet, int pSize) writeFloat
(float pValue) void
writeGlobalPos
(GlobalPos pPos) void
writeInstant
(Instant pInstant) writeInt
(int pValue) void
writeIntIdList
(it.unimi.dsi.fastutil.ints.IntList p_178346_) writeIntLE
(int pValue) <T> void
writeJsonWithCodec
(com.mojang.serialization.Codec<T> p_273285_, T p_272770_) writeLong
(long pValue) writeLongArray
(long[] pArray) Writes an array of longs to the buffer, prefixed by the length of the array (as a VarInt).writeLongLE
(long pValue) <K,
V> void writeMap
(Map<K, V> pMap, StreamEncoder<? super FriendlyByteBuf, K> pKeyWriter, StreamEncoder<? super FriendlyByteBuf, V> pValueWriter) writeMedium
(int pValue) writeMediumLE
(int pValue) static void
static <T,
B extends io.netty.buffer.ByteBuf>
voidwriteNullable
(B p_324502_, T p_324536_, StreamEncoder<? super B, T> p_324547_) <T> void
writeNullable
(T pValue, StreamEncoder<? super FriendlyByteBuf, T> pWriter) <T> void
writeOptional
(Optional<T> pOptional, StreamEncoder<? super FriendlyByteBuf, T> pWriter) writePublicKey
(PublicKey pPublicKey) static void
writeQuaternion
(io.netty.buffer.ByteBuf p_320668_, org.joml.Quaternionf p_320341_) void
writeQuaternion
(org.joml.Quaternionf p_270141_) void
writeResourceKey
(ResourceKey<?> pResourceKey) writeResourceLocation
(ResourceLocation pResourceLocation) Write a ResourceLocation using its String representation.int
writerIndex
(int pWriterIndex) writeSectionPos
(SectionPos pSectionPos) Writes a SectionPos encoded as a long to the buffer.writeShort
(int pValue) writeShortLE
(int pValue) Writes a String with a maximum length ofShort.MAX_VALUE
.Writes a String with a maximum length.static void
Writes a UUID encoded as two longs to this buffer.writeVarInt
(int p_130131_) Writes a compressed int to the buffer.writeVarIntArray
(int[] pArray) Writes an array of VarInts to the buffer, prefixed by the length of the array (as a VarInt).writeVarLong
(long pValue) Writes a compressed long to the buffer.void
static void
writeVector3f
(io.netty.buffer.ByteBuf p_320042_, org.joml.Vector3f p_320090_) void
writeVector3f
(org.joml.Vector3f p_270985_) <T> FriendlyByteBuf
writeWithCodec
(com.mojang.serialization.DynamicOps<Tag> p_266702_, com.mojang.serialization.Codec<T> p_267245_, T p_266783_) Deprecated.writeZero
(int pLength) Methods inherited from class io.netty.buffer.ByteBuf
asByteBuf, getDoubleLE, getFloatLE, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.IFriendlyByteBufExtension
readArray, readMap, writeArray, writeByte, writeMap, writeObjectCollection
-
Field Details
-
DEFAULT_NBT_QUOTA
public static final int DEFAULT_NBT_QUOTA- See Also:
-
source
private final io.netty.buffer.ByteBuf source -
MAX_STRING_LENGTH
public static final short MAX_STRING_LENGTH- See Also:
-
MAX_COMPONENT_STRING_LENGTH
public static final int MAX_COMPONENT_STRING_LENGTH- See Also:
-
PUBLIC_KEY_SIZE
private static final int PUBLIC_KEY_SIZE- See Also:
-
MAX_PUBLIC_KEY_HEADER_SIZE
private static final int MAX_PUBLIC_KEY_HEADER_SIZE- See Also:
-
MAX_PUBLIC_KEY_LENGTH
private static final int MAX_PUBLIC_KEY_LENGTH- See Also:
-
GSON
private static final com.google.gson.Gson GSON
-
-
Constructor Details
-
FriendlyByteBuf
public FriendlyByteBuf(io.netty.buffer.ByteBuf p_130051_)
-
-
Method Details
-
readWithCodecTrusted
@Deprecated public <T> T readWithCodecTrusted(com.mojang.serialization.DynamicOps<Tag> p_295347_, com.mojang.serialization.Codec<T> p_296304_) Deprecated. -
readWithCodec
@Deprecated public <T> T readWithCodec(com.mojang.serialization.DynamicOps<Tag> p_266903_, com.mojang.serialization.Codec<T> p_267107_, NbtAccounter p_295027_) Deprecated. -
writeWithCodec
@Deprecated public <T> FriendlyByteBuf writeWithCodec(com.mojang.serialization.DynamicOps<Tag> p_266702_, com.mojang.serialization.Codec<T> p_267245_, T p_266783_) Deprecated. -
readJsonWithCodec
public <T> T readJsonWithCodec(com.mojang.serialization.Codec<T> p_273318_) -
writeJsonWithCodec
public <T> void writeJsonWithCodec(com.mojang.serialization.Codec<T> p_273285_, T p_272770_) -
limitValue
-
readCollection
public <T,C extends Collection<T>> C readCollection(IntFunction<C> pCollectionFactory, StreamDecoder<? super FriendlyByteBuf, T> pElementReader) -
writeCollection
public <T> void writeCollection(Collection<T> pCollection, StreamEncoder<? super FriendlyByteBuf, T> pElementWriter) -
readList
-
readIntIdList
public it.unimi.dsi.fastutil.ints.IntList readIntIdList() -
writeIntIdList
public void writeIntIdList(it.unimi.dsi.fastutil.ints.IntList p_178346_) -
readMap
public <K,V, M readMapM extends Map<K, V>> (IntFunction<M> pMapFactory, StreamDecoder<? super FriendlyByteBuf, K> pKeyReader, StreamDecoder<? super FriendlyByteBuf, V> pValueReader) -
readMap
public <K,V> Map<K,V> readMap(StreamDecoder<? super FriendlyByteBuf, K> pKeyReader, StreamDecoder<? super FriendlyByteBuf, V> pValueReader) -
writeMap
public <K,V> void writeMap(Map<K, V> pMap, StreamEncoder<? super FriendlyByteBuf, K> pKeyWriter, StreamEncoder<? super FriendlyByteBuf, V> pValueWriter) -
readWithCount
Read a VarInt N from this buffer, then reads N values by callingreader
. -
writeEnumSet
-
readEnumSet
-
writeOptional
public <T> void writeOptional(Optional<T> pOptional, StreamEncoder<? super FriendlyByteBuf, T> pWriter) -
readOptional
-
readNullable
-
readNullable
@Nullable public static <T,B extends io.netty.buffer.ByteBuf> T readNullable(B p_324437_, StreamDecoder<? super B, T> p_324453_) -
writeNullable
-
writeNullable
public static <T,B extends io.netty.buffer.ByteBuf> void writeNullable(B p_324502_, @Nullable T p_324536_, StreamEncoder<? super B, T> p_324547_) -
readByteArray
public byte[] readByteArray() -
readByteArray
public static byte[] readByteArray(io.netty.buffer.ByteBuf p_324567_) -
writeByteArray
-
writeByteArray
public static void writeByteArray(io.netty.buffer.ByteBuf p_324397_, byte[] p_324485_) -
readByteArray
public byte[] readByteArray(int pMaxLength) -
readByteArray
public static byte[] readByteArray(io.netty.buffer.ByteBuf p_323774_, int p_324044_) -
writeVarIntArray
Writes an array of VarInts to the buffer, prefixed by the length of the array (as a VarInt).- See Also:
-
readVarIntArray
public int[] readVarIntArray() -
readVarIntArray
public int[] readVarIntArray(int pMaxLength) Reads an array of VarInts with a maximum length from this buffer.- See Also:
-
writeLongArray
Writes an array of longs to the buffer, prefixed by the length of the array (as a VarInt).- See Also:
-
readLongArray
public long[] readLongArray() -
readLongArray
public long[] readLongArray(@Nullable long[] pArray) Reads a length-prefixed array of longs from the buffer. Will try to use the given long[] if possible. Note that if an array with the correct size is given, maxLength is ignored. -
readLongArray
public long[] readLongArray(@Nullable long[] pArray, int pMaxLength) Reads a length-prefixed array of longs with a maximum length from the buffer. Will try to use the given long[] if possible. Note that if an array with the correct size is given, maxLength is ignored. -
readBlockPos
-
readBlockPos
-
writeBlockPos
Writes a BlockPos encoded as a long to the buffer.- See Also:
-
writeBlockPos
-
readChunkPos
-
writeChunkPos
Writes a ChunkPos encoded as a long to the buffer.- See Also:
-
readSectionPos
-
writeSectionPos
Writes a SectionPos encoded as a long to the buffer.- See Also:
-
readGlobalPos
-
writeGlobalPos
-
readVector3f
public org.joml.Vector3f readVector3f() -
readVector3f
public static org.joml.Vector3f readVector3f(io.netty.buffer.ByteBuf p_320362_) -
writeVector3f
public void writeVector3f(org.joml.Vector3f p_270985_) -
writeVector3f
public static void writeVector3f(io.netty.buffer.ByteBuf p_320042_, org.joml.Vector3f p_320090_) -
readQuaternion
public org.joml.Quaternionf readQuaternion() -
readQuaternion
public static org.joml.Quaternionf readQuaternion(io.netty.buffer.ByteBuf p_319961_) -
writeQuaternion
public void writeQuaternion(org.joml.Quaternionf p_270141_) -
writeQuaternion
public static void writeQuaternion(io.netty.buffer.ByteBuf p_320668_, org.joml.Quaternionf p_320341_) -
readVec3
-
writeVec3
-
readEnum
Reads an enum of the given type T using the ordinal encoded as a VarInt from the buffer.- See Also:
-
writeEnum
Writes an enum of the given type T using the ordinal encoded as a VarInt to the buffer.- See Also:
-
readById
-
writeById
-
readVarInt
public int readVarInt() -
readVarLong
public long readVarLong() -
writeUUID
Writes a UUID encoded as two longs to this buffer.- See Also:
-
writeUUID
-
readUUID
-
readUUID
-
writeVarInt
Writes a compressed int to the buffer. The smallest number of bytes to fit the passed int will be written. Of each such byte only 7 bits will be used to describe the actual value since its most significant bit dictates whether the next byte is part of that same int. Micro-optimization for int values that are usually small. -
writeVarLong
Writes a compressed long to the buffer. The smallest number of bytes to fit the passed long will be written. Of each such byte only 7 bits will be used to describe the actual value since its most significant bit dictates whether the next byte is part of that same long. Micro-optimization for long values that are usually small. -
writeNbt
-
writeNbt
-
readNbt
-
readNbt
-
readNbt
-
readNbt
-
readUtf
-
readUtf
Reads a string with a maximum length from this buffer.- See Also:
-
writeUtf
Writes a String with a maximum length ofShort.MAX_VALUE
.- See Also:
-
writeUtf
Writes a String with a maximum length.- See Also:
-
readResourceLocation
-
writeResourceLocation
Write a ResourceLocation using its String representation.- See Also:
-
readResourceKey
-
writeResourceKey
-
readRegistryKey
-
readDate
-
writeDate
Write a timestamp as milliseconds since the unix epoch.- See Also:
-
readInstant
-
writeInstant
-
readPublicKey
-
writePublicKey
-
readBlockHitResult
-
writeBlockHitResult
Write a BlockHitResult.- See Also:
-
readBitSet
-
writeBitSet
Write a BitSet as a long[].- See Also:
-
readFixedBitSet
-
writeFixedBitSet
-
isContiguous
public boolean isContiguous()- Overrides:
isContiguous
in classio.netty.buffer.ByteBuf
-
maxFastWritableBytes
public int maxFastWritableBytes()- Overrides:
maxFastWritableBytes
in classio.netty.buffer.ByteBuf
-
capacity
public int capacity()- Specified by:
capacity
in classio.netty.buffer.ByteBuf
-
capacity
- 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
- Specified by:
order
in classio.netty.buffer.ByteBuf
-
order
- 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
- Specified by:
readerIndex
in classio.netty.buffer.ByteBuf
-
writerIndex
public int writerIndex()- Specified by:
writerIndex
in classio.netty.buffer.ByteBuf
-
writerIndex
- Specified by:
writerIndex
in classio.netty.buffer.ByteBuf
-
setIndex
- 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 pSize) - 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 pSize) - Specified by:
isWritable
in classio.netty.buffer.ByteBuf
-
clear
- Specified by:
clear
in classio.netty.buffer.ByteBuf
-
markReaderIndex
- Specified by:
markReaderIndex
in classio.netty.buffer.ByteBuf
-
resetReaderIndex
- Specified by:
resetReaderIndex
in classio.netty.buffer.ByteBuf
-
markWriterIndex
- Specified by:
markWriterIndex
in classio.netty.buffer.ByteBuf
-
resetWriterIndex
- Specified by:
resetWriterIndex
in classio.netty.buffer.ByteBuf
-
discardReadBytes
- Specified by:
discardReadBytes
in classio.netty.buffer.ByteBuf
-
discardSomeReadBytes
- Specified by:
discardSomeReadBytes
in classio.netty.buffer.ByteBuf
-
ensureWritable
- Specified by:
ensureWritable
in classio.netty.buffer.ByteBuf
-
ensureWritable
public int ensureWritable(int pSize, boolean pForce) - Specified by:
ensureWritable
in classio.netty.buffer.ByteBuf
-
getBoolean
public boolean getBoolean(int pIndex) - Specified by:
getBoolean
in classio.netty.buffer.ByteBuf
-
getByte
public byte getByte(int pIndex) - Specified by:
getByte
in classio.netty.buffer.ByteBuf
-
getUnsignedByte
public short getUnsignedByte(int pIndex) - Specified by:
getUnsignedByte
in classio.netty.buffer.ByteBuf
-
getShort
public short getShort(int pIndex) - Specified by:
getShort
in classio.netty.buffer.ByteBuf
-
getShortLE
public short getShortLE(int pIndex) - Specified by:
getShortLE
in classio.netty.buffer.ByteBuf
-
getUnsignedShort
public int getUnsignedShort(int pIndex) - Specified by:
getUnsignedShort
in classio.netty.buffer.ByteBuf
-
getUnsignedShortLE
public int getUnsignedShortLE(int pIndex) - Specified by:
getUnsignedShortLE
in classio.netty.buffer.ByteBuf
-
getMedium
public int getMedium(int pIndex) - Specified by:
getMedium
in classio.netty.buffer.ByteBuf
-
getMediumLE
public int getMediumLE(int pIndex) - Specified by:
getMediumLE
in classio.netty.buffer.ByteBuf
-
getUnsignedMedium
public int getUnsignedMedium(int pIndex) - Specified by:
getUnsignedMedium
in classio.netty.buffer.ByteBuf
-
getUnsignedMediumLE
public int getUnsignedMediumLE(int pIndex) - Specified by:
getUnsignedMediumLE
in classio.netty.buffer.ByteBuf
-
getInt
public int getInt(int pIndex) - Specified by:
getInt
in classio.netty.buffer.ByteBuf
-
getIntLE
public int getIntLE(int pIndex) - Specified by:
getIntLE
in classio.netty.buffer.ByteBuf
-
getUnsignedInt
public long getUnsignedInt(int pIndex) - Specified by:
getUnsignedInt
in classio.netty.buffer.ByteBuf
-
getUnsignedIntLE
public long getUnsignedIntLE(int pIndex) - Specified by:
getUnsignedIntLE
in classio.netty.buffer.ByteBuf
-
getLong
public long getLong(int pIndex) - Specified by:
getLong
in classio.netty.buffer.ByteBuf
-
getLongLE
public long getLongLE(int pIndex) - Specified by:
getLongLE
in classio.netty.buffer.ByteBuf
-
getChar
public char getChar(int pIndex) - Specified by:
getChar
in classio.netty.buffer.ByteBuf
-
getFloat
public float getFloat(int pIndex) - Specified by:
getFloat
in classio.netty.buffer.ByteBuf
-
getDouble
public double getDouble(int pIndex) - Specified by:
getDouble
in classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public FriendlyByteBuf getBytes(int p_294107_, io.netty.buffer.ByteBuf p_296448_, int p_295017_, int p_294733_) - Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public FriendlyByteBuf getBytes(int pIndex, byte[] pDestination, int pDestinationIndex, int pLength) - Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
getBytes
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
getBytes
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
getCharSequence
- Specified by:
getCharSequence
in classio.netty.buffer.ByteBuf
-
setBoolean
- Specified by:
setBoolean
in classio.netty.buffer.ByteBuf
-
setByte
- Specified by:
setByte
in classio.netty.buffer.ByteBuf
-
setShort
- Specified by:
setShort
in classio.netty.buffer.ByteBuf
-
setShortLE
- Specified by:
setShortLE
in classio.netty.buffer.ByteBuf
-
setMedium
- Specified by:
setMedium
in classio.netty.buffer.ByteBuf
-
setMediumLE
- Specified by:
setMediumLE
in classio.netty.buffer.ByteBuf
-
setInt
- Specified by:
setInt
in classio.netty.buffer.ByteBuf
-
setIntLE
- Specified by:
setIntLE
in classio.netty.buffer.ByteBuf
-
setLong
- Specified by:
setLong
in classio.netty.buffer.ByteBuf
-
setLongLE
- Specified by:
setLongLE
in classio.netty.buffer.ByteBuf
-
setChar
- Specified by:
setChar
in classio.netty.buffer.ByteBuf
-
setFloat
- Specified by:
setFloat
in classio.netty.buffer.ByteBuf
-
setDouble
- Specified by:
setDouble
in classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
public FriendlyByteBuf setBytes(int p_296236_, io.netty.buffer.ByteBuf p_295709_, int p_294354_, int p_295897_) - Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
setBytes
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
setBytes
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
setZero
- Specified by:
setZero
in classio.netty.buffer.ByteBuf
-
setCharSequence
- 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 p_130287_) - Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readSlice
public io.netty.buffer.ByteBuf readSlice(int p_130332_) - Specified by:
readSlice
in classio.netty.buffer.ByteBuf
-
readRetainedSlice
public io.netty.buffer.ByteBuf readRetainedSlice(int p_130328_) - Specified by:
readRetainedSlice
in classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
readCharSequence
- Specified by:
readCharSequence
in classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
skipBytes
- Specified by:
skipBytes
in classio.netty.buffer.ByteBuf
-
writeBoolean
- Specified by:
writeBoolean
in classio.netty.buffer.ByteBuf
-
writeByte
- Specified by:
writeByte
in classio.netty.buffer.ByteBuf
-
writeShort
- Specified by:
writeShort
in classio.netty.buffer.ByteBuf
-
writeShortLE
- Specified by:
writeShortLE
in classio.netty.buffer.ByteBuf
-
writeMedium
- Specified by:
writeMedium
in classio.netty.buffer.ByteBuf
-
writeMediumLE
- Specified by:
writeMediumLE
in classio.netty.buffer.ByteBuf
-
writeInt
- Specified by:
writeInt
in classio.netty.buffer.ByteBuf
-
writeIntLE
- Specified by:
writeIntLE
in classio.netty.buffer.ByteBuf
-
writeLong
- Specified by:
writeLong
in classio.netty.buffer.ByteBuf
-
writeLongLE
- Specified by:
writeLongLE
in classio.netty.buffer.ByteBuf
-
writeChar
- Specified by:
writeChar
in classio.netty.buffer.ByteBuf
-
writeFloat
- Specified by:
writeFloat
in classio.netty.buffer.ByteBuf
-
writeDouble
- Specified by:
writeDouble
in classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
writeZero
- Specified by:
writeZero
in classio.netty.buffer.ByteBuf
-
writeCharSequence
- Specified by:
writeCharSequence
in classio.netty.buffer.ByteBuf
-
indexOf
public int indexOf(int pFromIndex, int pToIndex, byte pValue) - Specified by:
indexOf
in classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(byte pValue) - Specified by:
bytesBefore
in classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int pLength, byte pValue) - Specified by:
bytesBefore
in classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int pIndex, int pLength, byte pValue) - Specified by:
bytesBefore
in classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(io.netty.util.ByteProcessor p_130150_) - Specified by:
forEachByte
in classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(int p_130146_, int p_130147_, io.netty.util.ByteProcessor p_130148_) - Specified by:
forEachByte
in classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(io.netty.util.ByteProcessor p_130156_) - Specified by:
forEachByteDesc
in classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(int p_130152_, int p_130153_, io.netty.util.ByteProcessor p_130154_) - 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 p_130128_, int p_130129_) - 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 p_130450_, int p_130451_) - Specified by:
slice
in classio.netty.buffer.ByteBuf
-
retainedSlice
public io.netty.buffer.ByteBuf retainedSlice(int p_130359_, int p_130360_) - 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
-
nioBufferCount
public int nioBufferCount()- Specified by:
nioBufferCount
in classio.netty.buffer.ByteBuf
-
nioBuffer
- Specified by:
nioBuffer
in classio.netty.buffer.ByteBuf
-
nioBuffer
- Specified by:
nioBuffer
in classio.netty.buffer.ByteBuf
-
internalNioBuffer
- Specified by:
internalNioBuffer
in classio.netty.buffer.ByteBuf
-
nioBuffers
- Specified by:
nioBuffers
in classio.netty.buffer.ByteBuf
-
nioBuffers
- Specified by:
nioBuffers
in classio.netty.buffer.ByteBuf
-
hasArray
public boolean hasArray()- Specified by:
hasArray
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
-
hasMemoryAddress
public boolean hasMemoryAddress()- Specified by:
hasMemoryAddress
in classio.netty.buffer.ByteBuf
-
memoryAddress
public long memoryAddress()- Specified by:
memoryAddress
in classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toString
in classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toString
in classio.netty.buffer.ByteBuf
-
hashCode
public int hashCode()- Specified by:
hashCode
in classio.netty.buffer.ByteBuf
-
equals
- Specified by:
equals
in classio.netty.buffer.ByteBuf
-
compareTo
public int compareTo(io.netty.buffer.ByteBuf p_130123_) - Specified by:
compareTo
in interfaceComparable<io.netty.buffer.ByteBuf>
- Specified by:
compareTo
in classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toString
in classio.netty.buffer.ByteBuf
-
retain
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
- Specified by:
retain
in classio.netty.buffer.ByteBuf
-
retain
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
- Specified by:
retain
in classio.netty.buffer.ByteBuf
-
touch
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Specified by:
touch
in classio.netty.buffer.ByteBuf
-
touch
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Specified by:
touch
in classio.netty.buffer.ByteBuf
-
refCnt
public int refCnt()- Specified by:
refCnt
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()- Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int pDecrement) - Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-
getSource
@Internal public io.netty.buffer.ByteBuf getSource()
-