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 TypeFieldDescriptionprivate static final com.google.gson.Gsonstatic final intprivate static final intprivate static final intstatic final shortprivate static final intprivate final io.netty.buffer.ByteBuf -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.buffer.ByteBufAllocatoralloc()byte[]array()intio.netty.buffer.ByteBufintbytesBefore(byte value) intbytesBefore(int length, byte value) intbytesBefore(int index, int length, byte value) intcapacity()capacity(int newCapacity) clear()intcompareTo(io.netty.buffer.ByteBuf buffer) io.netty.buffer.ByteBufcopy()io.netty.buffer.ByteBufcopy(int index, int length) io.netty.buffer.ByteBufensureWritable(int minWritableBytes) intensureWritable(int minWritableBytes, boolean force) booleanintforEachByte(int index, int length, io.netty.util.ByteProcessor processor) intforEachByte(io.netty.util.ByteProcessor processor) intforEachByteDesc(int index, int length, io.netty.util.ByteProcessor processor) intforEachByteDesc(io.netty.util.ByteProcessor processor) booleangetBoolean(int index) bytegetByte(int index) getBytes(int index, byte[] dst) getBytes(int index, byte[] dst, int dstIndex, int length) getBytes(int index, io.netty.buffer.ByteBuf dst) getBytes(int index, io.netty.buffer.ByteBuf dst, int length) getBytes(int index, io.netty.buffer.ByteBuf dst, int dstIndex, int length) getBytes(int index, OutputStream out, int length) getBytes(int index, ByteBuffer dst) intgetBytes(int index, FileChannel out, long position, int length) intgetBytes(int index, GatheringByteChannel out, int length) chargetChar(int index) getCharSequence(int index, int length, Charset charset) doublegetDouble(int index) floatgetFloat(int index) intgetInt(int index) intgetIntLE(int index) longgetLong(int index) longgetLongLE(int index) intgetMedium(int index) intgetMediumLE(int index) shortgetShort(int index) shortgetShortLE(int index) io.netty.buffer.ByteBufshortgetUnsignedByte(int index) longgetUnsignedInt(int index) longgetUnsignedIntLE(int index) intgetUnsignedMedium(int index) intgetUnsignedMediumLE(int index) intgetUnsignedShort(int index) intgetUnsignedShortLE(int index) booleanhasArray()inthashCode()booleanintindexOf(int fromIndex, int toIndex, byte value) internalNioBuffer(int index, int length) booleanbooleanisDirect()booleanbooleanisReadable(int size) booleanbooleanbooleanisWritable(int size) static <T> IntFunction<T> limitValue(IntFunction<T> original, int limit) intintintlongnioBuffer(int index, int length) intnioBuffers(int index, int length) order()io.netty.buffer.ByteBufintstatic BlockPosreadBlockPos(io.netty.buffer.ByteBuf input) boolean<T> TreadById(IntFunction<T> converter) bytereadByte()byte[]byte[]readByteArray(int maxSize) static byte[]readByteArray(io.netty.buffer.ByteBuf input) static byte[]readByteArray(io.netty.buffer.ByteBuf input, int maxSize) readBytes(byte[] dst) readBytes(byte[] dst, int dstIndex, int length) io.netty.buffer.ByteBufreadBytes(int length) readBytes(io.netty.buffer.ByteBuf dst) readBytes(io.netty.buffer.ByteBuf dst, int length) readBytes(io.netty.buffer.ByteBuf dst, int dstIndex, int length) readBytes(OutputStream out, int length) readBytes(ByteBuffer dst) intreadBytes(FileChannel out, long position, int length) intreadBytes(GatheringByteChannel out, int length) charreadChar()readCharSequence(int length, Charset charset) static ChunkPosreadChunkPos(io.netty.buffer.ByteBuf input) <T, C extends Collection<T>>
CreadCollection(IntFunction<C> ctor, StreamDecoder<? super FriendlyByteBuf, T> elementDecoder) intstatic intreadContainerId(io.netty.buffer.ByteBuf input) double<L,R> Either <L, R> readEither(StreamDecoder<? super FriendlyByteBuf, L> leftReader, StreamDecoder<? super FriendlyByteBuf, R> rightReader) <T extends Enum<T>>
TreadEnumSet(Class<E> clazz) intreaderIndex(int readerIndex) readFixedBitSet(int size) long[]readFixedSizeLongArray(long[] output) static long[]readFixedSizeLongArray(io.netty.buffer.ByteBuf input, long[] output) floatintreadInt()it.unimi.dsi.fastutil.ints.IntListint<T> TreadLenientJsonWithCodec(Codec<T> codec) <T> List<T> readList(StreamDecoder<? super FriendlyByteBuf, T> elementDecoder) longreadLong()long[]static long[]readLongArray(io.netty.buffer.ByteBuf input) long<K, V, M extends Map<K,V>>
MreadMap(IntFunction<M> ctor, StreamDecoder<? super FriendlyByteBuf, K> keyDecoder, StreamDecoder<? super FriendlyByteBuf, V> valueDecoder) <K,V> Map <K, V> readMap(StreamDecoder<? super FriendlyByteBuf, K> keyDecoder, StreamDecoder<? super FriendlyByteBuf, V> valueDecoder) intint@Nullable CompoundTagreadNbt()static @Nullable CompoundTagreadNbt(io.netty.buffer.ByteBuf input) static @Nullable TagreadNbt(io.netty.buffer.ByteBuf input, NbtAccounter accounter) @Nullable TagreadNbt(NbtAccounter accounter) static <T, B extends io.netty.buffer.ByteBuf>
@Nullable TreadNullable(B input, StreamDecoder<? super B, T> valueDecoder) <T> @Nullable TreadNullable(StreamDecoder<? super FriendlyByteBuf, T> valueDecoder) <T> Optional<T> readOptional(StreamDecoder<? super FriendlyByteBuf, T> valueReader) org.joml.Quaternionfstatic org.joml.QuaternionfreadQuaternion(io.netty.buffer.ByteBuf input) <T> ResourceKey<? extends Registry<T>> <T> ResourceKey<T> readResourceKey(ResourceKey<? extends Registry<T>> registry) io.netty.buffer.ByteBufreadRetainedSlice(int length) shortshortio.netty.buffer.ByteBufreadSlice(int length) readString(int length, Charset charset) shortlonglongintintintintreadUtf()readUtf(int maxLength) readUUID()static UUIDreadUUID(io.netty.buffer.ByteBuf input) intint[]int[]readVarIntArray(int maxSize) longorg.joml.Vector3fstatic org.joml.Vector3freadVector3f(io.netty.buffer.ByteBuf input) <T> TreadWithCodec(DynamicOps<Tag> ops, Codec<T> codec, NbtAccounter accounter) Deprecated.<T> TreadWithCodecTrusted(DynamicOps<Tag> ops, Codec<T> codec) Deprecated.voidreadWithCount(Consumer<FriendlyByteBuf> reader) intrefCnt()booleanrelease()booleanrelease(int decrement) retain()retain(int increment) io.netty.buffer.ByteBufio.netty.buffer.ByteBufio.netty.buffer.ByteBufretainedSlice(int index, int length) setBoolean(int index, boolean value) setByte(int index, int value) setBytes(int index, byte[] src) setBytes(int index, byte[] src, int srcIndex, int length) setBytes(int index, io.netty.buffer.ByteBuf src) setBytes(int index, io.netty.buffer.ByteBuf src, int length) setBytes(int index, io.netty.buffer.ByteBuf src, int srcIndex, int length) intsetBytes(int index, InputStream in, int length) setBytes(int index, ByteBuffer src) intsetBytes(int index, FileChannel in, long position, int length) intsetBytes(int index, ScatteringByteChannel in, int length) setChar(int index, int value) intsetCharSequence(int index, CharSequence sequence, Charset charset) setDouble(int index, double value) setFloat(int index, float value) setIndex(int readerIndex, int writerIndex) setInt(int index, int value) setIntLE(int index, int value) setLong(int index, long value) setLongLE(int index, long value) setMedium(int index, int value) setMediumLE(int index, int value) setShort(int index, int value) setShortLE(int index, int value) setZero(int index, int length) skipBytes(int length) io.netty.buffer.ByteBufslice()io.netty.buffer.ByteBufslice(int index, int length) toString()touch()io.netty.buffer.ByteBufunwrap()intvoidwriteBitSet(BitSet bitSet) voidwriteBlockHitResult(BlockHitResult blockHit) static voidwriteBlockPos(io.netty.buffer.ByteBuf output, BlockPos pos) writeBlockPos(BlockPos pos) writeBoolean(boolean value) <T> FriendlyByteBufwriteById(ToIntFunction<T> converter, T value) writeByte(int value) writeByteArray(byte[] bytes) static voidwriteByteArray(io.netty.buffer.ByteBuf output, byte[] bytes) writeBytes(byte[] src) writeBytes(byte[] src, int srcIndex, int length) writeBytes(io.netty.buffer.ByteBuf src) writeBytes(io.netty.buffer.ByteBuf src, int length) writeBytes(io.netty.buffer.ByteBuf src, int srcIndex, int length) intwriteBytes(InputStream in, int length) writeBytes(ByteBuffer src) intwriteBytes(FileChannel in, long position, int length) intwriteBytes(ScatteringByteChannel in, int length) writeChar(int value) intwriteCharSequence(CharSequence sequence, Charset charset) static voidwriteChunkPos(io.netty.buffer.ByteBuf output, ChunkPos chunkPos) writeChunkPos(ChunkPos pos) <T> voidwriteCollection(Collection<T> collection, StreamEncoder<? super FriendlyByteBuf, T> encoder) voidwriteContainerId(int id) static voidwriteContainerId(io.netty.buffer.ByteBuf output, int id) writeDouble(double value) <L,R> void writeEither(Either<L, R> value, StreamEncoder<? super FriendlyByteBuf, L> leftWriter, StreamEncoder<? super FriendlyByteBuf, R> rightWriter) <E extends Enum<E>>
voidwriteEnumSet(EnumSet<E> set, Class<E> clazz) voidwriteFixedBitSet(BitSet bitSet, int size) writeFixedSizeLongArray(long[] longs) static voidwriteFixedSizeLongArray(io.netty.buffer.ByteBuf output, long[] longs) writeFloat(float value) voidwriteGlobalPos(GlobalPos globalPos) writeIdentifier(Identifier identifier) voidwriteInstant(Instant value) writeInt(int value) voidwriteIntIdList(it.unimi.dsi.fastutil.ints.IntList ids) writeIntLE(int value) <T> voidwriteJsonWithCodec(Codec<T> codec, T value) writeLong(long value) writeLongArray(long[] longs) static voidwriteLongArray(io.netty.buffer.ByteBuf output, long[] longs) writeLongLE(long value) <K,V> void writeMap(Map<K, V> map, StreamEncoder<? super FriendlyByteBuf, K> keyEncoder, StreamEncoder<? super FriendlyByteBuf, V> valueEncoder) writeMedium(int value) writeMediumLE(int value) static void<T> voidwriteNullable(@Nullable T value, StreamEncoder<? super FriendlyByteBuf, T> valueEncoder) static <T, B extends io.netty.buffer.ByteBuf>
voidwriteNullable(B output, @Nullable T value, StreamEncoder<? super B, T> valueEncoder) <T> voidwriteOptional(Optional<T> value, StreamEncoder<? super FriendlyByteBuf, T> valueWriter) writePublicKey(PublicKey publicKey) static voidwriteQuaternion(io.netty.buffer.ByteBuf output, org.joml.Quaternionfc value) voidwriteQuaternion(org.joml.Quaternionf q) voidwriteResourceKey(ResourceKey<?> key) intwriterIndex(int writerIndex) writeShort(int value) writeShortLE(int value) static voidwriteVarInt(int value) writeVarIntArray(int[] ints) writeVarLong(long value) static voidwriteVector3f(io.netty.buffer.ByteBuf output, org.joml.Vector3fc v) voidwriteVector3f(org.joml.Vector3f v) <T> FriendlyByteBufwriteWithCodec(DynamicOps<Tag> ops, Codec<T> codec, T value) Deprecated.writeZero(int length) Methods inherited from class io.netty.buffer.ByteBuf
asByteBuf, getDoubleLE, getFloatLE, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLEMethods inherited from interface IFriendlyByteBufExtension
readArray, readMap, writeArray, writeByte, writeMap, writeObjectCollection
-
Field Details
-
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 source)
-
-
Method Details
-
readWithCodecTrusted
Deprecated. -
readWithCodec
Deprecated. -
writeWithCodec
Deprecated. -
readLenientJsonWithCodec
-
writeJsonWithCodec
-
limitValue
-
readCollection
public <T, C extends Collection<T>> C readCollection(IntFunction<C> ctor, StreamDecoder<? super FriendlyByteBuf, T> elementDecoder) -
writeCollection
public <T> void writeCollection(Collection<T> collection, StreamEncoder<? super FriendlyByteBuf, T> encoder) -
readList
-
readIntIdList
public it.unimi.dsi.fastutil.ints.IntList readIntIdList() -
writeIntIdList
public void writeIntIdList(it.unimi.dsi.fastutil.ints.IntList ids) -
readMap
public <K, V, M extends Map<K,V>> M readMap(IntFunction<M> ctor, StreamDecoder<? super FriendlyByteBuf, K> keyDecoder, StreamDecoder<? super FriendlyByteBuf, V> valueDecoder) -
readMap
public <K,V> Map<K,V> readMap(StreamDecoder<? super FriendlyByteBuf, K> keyDecoder, StreamDecoder<? super FriendlyByteBuf, V> valueDecoder) -
writeMap
public <K,V> void writeMap(Map<K, V> map, StreamEncoder<? super FriendlyByteBuf, K> keyEncoder, StreamEncoder<? super FriendlyByteBuf, V> valueEncoder) -
readWithCount
-
writeEnumSet
-
readEnumSet
-
writeOptional
public <T> void writeOptional(Optional<T> value, StreamEncoder<? super FriendlyByteBuf, T> valueWriter) -
readOptional
-
writeEither
public <L,R> void writeEither(Either<L, R> value, StreamEncoder<? super FriendlyByteBuf, L> leftWriter, StreamEncoder<? super FriendlyByteBuf, R> rightWriter) -
readEither
public <L,R> Either<L,R> readEither(StreamDecoder<? super FriendlyByteBuf, L> leftReader, StreamDecoder<? super FriendlyByteBuf, R> rightReader) -
readNullable
-
readNullable
public static <T, B extends io.netty.buffer.ByteBuf> @Nullable T readNullable(B input, StreamDecoder<? super B, T> valueDecoder) -
writeNullable
public <T> void writeNullable(@Nullable T value, StreamEncoder<? super FriendlyByteBuf, T> valueEncoder) -
writeNullable
public static <T, B extends io.netty.buffer.ByteBuf> void writeNullable(B output, @Nullable T value, StreamEncoder<? super B, T> valueEncoder) -
readByteArray
public byte[] readByteArray() -
readByteArray
public static byte[] readByteArray(io.netty.buffer.ByteBuf input) -
writeByteArray
-
writeByteArray
public static void writeByteArray(io.netty.buffer.ByteBuf output, byte[] bytes) -
readByteArray
public byte[] readByteArray(int maxSize) -
readByteArray
public static byte[] readByteArray(io.netty.buffer.ByteBuf input, int maxSize) -
writeVarIntArray
-
readVarIntArray
public int[] readVarIntArray() -
readVarIntArray
public int[] readVarIntArray(int maxSize) -
writeLongArray
-
writeLongArray
public static void writeLongArray(io.netty.buffer.ByteBuf output, long[] longs) -
writeFixedSizeLongArray
-
writeFixedSizeLongArray
public static void writeFixedSizeLongArray(io.netty.buffer.ByteBuf output, long[] longs) -
readLongArray
public long[] readLongArray() -
readFixedSizeLongArray
public long[] readFixedSizeLongArray(long[] output) -
readLongArray
public static long[] readLongArray(io.netty.buffer.ByteBuf input) -
readFixedSizeLongArray
public static long[] readFixedSizeLongArray(io.netty.buffer.ByteBuf input, long[] output) -
readBlockPos
-
readBlockPos
-
writeBlockPos
-
writeBlockPos
-
readChunkPos
-
writeChunkPos
-
readChunkPos
-
writeChunkPos
-
readGlobalPos
-
writeGlobalPos
-
readVector3f
public org.joml.Vector3f readVector3f() -
readVector3f
public static org.joml.Vector3f readVector3f(io.netty.buffer.ByteBuf input) -
writeVector3f
public void writeVector3f(org.joml.Vector3f v) -
writeVector3f
public static void writeVector3f(io.netty.buffer.ByteBuf output, org.joml.Vector3fc v) -
readQuaternion
public org.joml.Quaternionf readQuaternion() -
readQuaternion
public static org.joml.Quaternionf readQuaternion(io.netty.buffer.ByteBuf input) -
writeQuaternion
public void writeQuaternion(org.joml.Quaternionf q) -
writeQuaternion
public static void writeQuaternion(io.netty.buffer.ByteBuf output, org.joml.Quaternionfc value) -
readEnum
-
writeEnum
-
readById
-
writeById
-
readVarInt
public int readVarInt() -
readVarLong
public long readVarLong() -
writeUUID
-
writeUUID
-
readUUID
-
readUUID
-
writeVarInt
-
writeVarLong
-
writeNbt
-
writeNbt
-
readNbt
-
readNbt
-
readNbt
-
readNbt
-
readUtf
-
readUtf
-
writeUtf
-
writeUtf
-
readIdentifier
-
writeIdentifier
-
readResourceKey
-
writeResourceKey
-
readRegistryKey
-
readInstant
-
writeInstant
-
readPublicKey
-
writePublicKey
-
readBlockHitResult
-
writeBlockHitResult
-
readBitSet
-
writeBitSet
-
readFixedBitSet
-
writeFixedBitSet
-
readContainerId
public static int readContainerId(io.netty.buffer.ByteBuf input) -
readContainerId
public int readContainerId() -
writeContainerId
public static void writeContainerId(io.netty.buffer.ByteBuf output, int id) -
writeContainerId
public void writeContainerId(int id) -
isContiguous
public boolean isContiguous()- Overrides:
isContiguousin classio.netty.buffer.ByteBuf
-
maxFastWritableBytes
public int maxFastWritableBytes()- Overrides:
maxFastWritableBytesin classio.netty.buffer.ByteBuf
-
capacity
public int capacity()- Specified by:
capacityin classio.netty.buffer.ByteBuf
-
capacity
- 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
- Specified by:
readerIndexin classio.netty.buffer.ByteBuf
-
writerIndex
public int writerIndex()- Specified by:
writerIndexin classio.netty.buffer.ByteBuf
-
writerIndex
- Specified by:
writerIndexin classio.netty.buffer.ByteBuf
-
setIndex
- 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 size) - Specified by:
isReadablein classio.netty.buffer.ByteBuf
-
isWritable
public boolean isWritable()- Specified by:
isWritablein classio.netty.buffer.ByteBuf
-
isWritable
public boolean isWritable(int size) - Specified by:
isWritablein classio.netty.buffer.ByteBuf
-
clear
- Specified by:
clearin classio.netty.buffer.ByteBuf
-
markReaderIndex
- Specified by:
markReaderIndexin classio.netty.buffer.ByteBuf
-
resetReaderIndex
- Specified by:
resetReaderIndexin classio.netty.buffer.ByteBuf
-
markWriterIndex
- Specified by:
markWriterIndexin classio.netty.buffer.ByteBuf
-
resetWriterIndex
- Specified by:
resetWriterIndexin classio.netty.buffer.ByteBuf
-
discardReadBytes
- Specified by:
discardReadBytesin classio.netty.buffer.ByteBuf
-
discardSomeReadBytes
- Specified by:
discardSomeReadBytesin classio.netty.buffer.ByteBuf
-
ensureWritable
- Specified by:
ensureWritablein classio.netty.buffer.ByteBuf
-
ensureWritable
public int ensureWritable(int minWritableBytes, boolean force) - Specified by:
ensureWritablein classio.netty.buffer.ByteBuf
-
getBoolean
public boolean getBoolean(int index) - Specified by:
getBooleanin classio.netty.buffer.ByteBuf
-
getByte
public byte getByte(int index) - Specified by:
getBytein classio.netty.buffer.ByteBuf
-
getUnsignedByte
public short getUnsignedByte(int index) - Specified by:
getUnsignedBytein classio.netty.buffer.ByteBuf
-
getShort
public short getShort(int index) - Specified by:
getShortin classio.netty.buffer.ByteBuf
-
getShortLE
public short getShortLE(int index) - Specified by:
getShortLEin classio.netty.buffer.ByteBuf
-
getUnsignedShort
public int getUnsignedShort(int index) - Specified by:
getUnsignedShortin classio.netty.buffer.ByteBuf
-
getUnsignedShortLE
public int getUnsignedShortLE(int index) - Specified by:
getUnsignedShortLEin classio.netty.buffer.ByteBuf
-
getMedium
public int getMedium(int index) - Specified by:
getMediumin classio.netty.buffer.ByteBuf
-
getMediumLE
public int getMediumLE(int index) - Specified by:
getMediumLEin classio.netty.buffer.ByteBuf
-
getUnsignedMedium
public int getUnsignedMedium(int index) - Specified by:
getUnsignedMediumin classio.netty.buffer.ByteBuf
-
getUnsignedMediumLE
public int getUnsignedMediumLE(int index) - Specified by:
getUnsignedMediumLEin classio.netty.buffer.ByteBuf
-
getInt
public int getInt(int index) - Specified by:
getIntin classio.netty.buffer.ByteBuf
-
getIntLE
public int getIntLE(int index) - Specified by:
getIntLEin classio.netty.buffer.ByteBuf
-
getUnsignedInt
public long getUnsignedInt(int index) - Specified by:
getUnsignedIntin classio.netty.buffer.ByteBuf
-
getUnsignedIntLE
public long getUnsignedIntLE(int index) - Specified by:
getUnsignedIntLEin classio.netty.buffer.ByteBuf
-
getLong
public long getLong(int index) - Specified by:
getLongin classio.netty.buffer.ByteBuf
-
getLongLE
public long getLongLE(int index) - Specified by:
getLongLEin classio.netty.buffer.ByteBuf
-
getChar
public char getChar(int index) - Specified by:
getCharin classio.netty.buffer.ByteBuf
-
getFloat
public float getFloat(int index) - Specified by:
getFloatin classio.netty.buffer.ByteBuf
-
getDouble
public double getDouble(int index) - Specified by:
getDoublein classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
getBytes
- 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
- Specified by:
setBooleanin classio.netty.buffer.ByteBuf
-
setByte
- Specified by:
setBytein classio.netty.buffer.ByteBuf
-
setShort
- Specified by:
setShortin classio.netty.buffer.ByteBuf
-
setShortLE
- Specified by:
setShortLEin classio.netty.buffer.ByteBuf
-
setMedium
- Specified by:
setMediumin classio.netty.buffer.ByteBuf
-
setMediumLE
- Specified by:
setMediumLEin classio.netty.buffer.ByteBuf
-
setInt
- Specified by:
setIntin classio.netty.buffer.ByteBuf
-
setIntLE
- Specified by:
setIntLEin classio.netty.buffer.ByteBuf
-
setLong
- Specified by:
setLongin classio.netty.buffer.ByteBuf
-
setLongLE
- Specified by:
setLongLEin classio.netty.buffer.ByteBuf
-
setChar
- Specified by:
setCharin classio.netty.buffer.ByteBuf
-
setFloat
- Specified by:
setFloatin classio.netty.buffer.ByteBuf
-
setDouble
- Specified by:
setDoublein classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
- 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
- Specified by:
setBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
setZero
- 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 length) - Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readSlice
public io.netty.buffer.ByteBuf readSlice(int length) - Specified by:
readSlicein classio.netty.buffer.ByteBuf
-
readRetainedSlice
public io.netty.buffer.ByteBuf readRetainedSlice(int length) - Specified by:
readRetainedSlicein classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- 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
-
readString
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin classio.netty.buffer.ByteBuf
-
writeBoolean
- Specified by:
writeBooleanin classio.netty.buffer.ByteBuf
-
writeByte
- Specified by:
writeBytein classio.netty.buffer.ByteBuf
-
writeShort
- Specified by:
writeShortin classio.netty.buffer.ByteBuf
-
writeShortLE
- Specified by:
writeShortLEin classio.netty.buffer.ByteBuf
-
writeMedium
- Specified by:
writeMediumin classio.netty.buffer.ByteBuf
-
writeMediumLE
- Specified by:
writeMediumLEin classio.netty.buffer.ByteBuf
-
writeInt
- Specified by:
writeIntin classio.netty.buffer.ByteBuf
-
writeIntLE
- Specified by:
writeIntLEin classio.netty.buffer.ByteBuf
-
writeLong
- Specified by:
writeLongin classio.netty.buffer.ByteBuf
-
writeLongLE
- Specified by:
writeLongLEin classio.netty.buffer.ByteBuf
-
writeChar
- Specified by:
writeCharin classio.netty.buffer.ByteBuf
-
writeFloat
- Specified by:
writeFloatin classio.netty.buffer.ByteBuf
-
writeDouble
- Specified by:
writeDoublein classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- 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
- Specified by:
writeZeroin classio.netty.buffer.ByteBuf
-
writeCharSequence
- Specified by:
writeCharSequencein classio.netty.buffer.ByteBuf
-
indexOf
public int indexOf(int fromIndex, int toIndex, byte value) - Specified by:
indexOfin classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(byte value) - Specified by:
bytesBeforein classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int length, byte value) - Specified by:
bytesBeforein classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int index, int length, byte value) - Specified by:
bytesBeforein classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(io.netty.util.ByteProcessor processor) - Specified by:
forEachBytein classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(int index, int length, io.netty.util.ByteProcessor processor) - Specified by:
forEachBytein classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(io.netty.util.ByteProcessor processor) - Specified by:
forEachByteDescin classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(int index, int length, io.netty.util.ByteProcessor processor) - 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 index, int length) - 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 index, int length) - Specified by:
slicein classio.netty.buffer.ByteBuf
-
retainedSlice
public io.netty.buffer.ByteBuf retainedSlice(int index, int length) - 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
-
toString
-
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 buffer) - Specified by:
compareToin interfaceComparable<io.netty.buffer.ByteBuf>- Specified by:
compareToin classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toStringin classio.netty.buffer.ByteBuf
-
retain
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Specified by:
retainin classio.netty.buffer.ByteBuf
-
retain
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Specified by:
retainin classio.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()- Specified by:
refCntin interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int decrement) - Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
getSource
@Internal public io.netty.buffer.ByteBuf getSource()
-