Top Inners Fields Constructors Methods
io.netty5.buffer.unsafe

pack-priv final Class UnsafeBuffer

extends AdaptableBuffer<UnsafeBuffer>
implements BufferComponent, NotReadOnlyReadableComponent, ComponentIterator<UnsafeBuffer>, Next
Class Inheritance
All Implemented Interfaces
io.netty5.buffer.ComponentIterator.Next, io.netty5.buffer.ComponentIterator, io.netty5.util.SafeCloseable, java.lang.AutoCloseable, io.netty5.buffer.internal.NotReadOnlyReadableComponent, io.netty5.buffer.BufferComponent
Annotations
@UnsafeAccess
Imports
io.netty5.buffer.AllocatorControl, .Buffer, .BufferAllocator, .BufferClosedException, .BufferComponent, .BufferReadOnlyException, .ByteCursor, .ComponentIterator, .Drop, .Owned, io.netty5.buffer.internal.AdaptableBuffer, .InternalBufferUtils, .NotReadOnlyReadableComponent, .InternalBufferUtils.UncheckedLoadByte, io.netty5.util.internal.PlatformDependent, .UnsafeAccess, sun.misc.Unsafe, java.io.IOException, java.lang.ref.Reference, java.nio.ByteBuffer, .ByteOrder, .ReadOnlyBufferException, java.nio.channels.FileChannel, .ReadableByteChannel, .WritableByteChannel

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static final boolean
private long
private Object
private long
private static final boolean
BYTES_BEFORE_USE_LITTLE_ENDIAN

Most deployment platforms support unaligned access, and are little-endian.

private static final int
private static final boolean
private int
private UnsafeMemory
private boolean
private int
private int
private static final Unsafe
private int
private int
Inherited from io.netty5.buffer.internal.AdaptableBuffer:
control

Constructor Summary

AccessConstructor and Description
pack-priv
UnsafeBuffer(UnsafeMemory memory, long offset, int size, AllocatorControl control, Drop<UnsafeBuffer> drop)

private
UnsafeBuffer(UnsafeBuffer parent, Drop<UnsafeBuffer> drop)

Constructor for const buffers.

Method Summary

Modifier and TypeMethod and Description
private void
public long
baseNativeAddress()

Implements io.netty5.buffer.BufferComponent.baseNativeAddress.

Give the base native memory address backing this buffer, or return 0 if this buffer has no native memory address.
private BufferClosedException
public int
bytesBefore(byte
The byte value to search for.
needle
)

Implements io.netty5.buffer.Buffer.bytesBefore.

Get the number of readable bytes, until the given needle is found in this buffer.
public int
bytesBefore(Buffer
The buffer value to search for.
needle
)

Implements io.netty5.buffer.Buffer.bytesBefore.

Get the number of readable bytes, until the given needle is found in this buffer.
public int
capacity()

Implements io.netty5.buffer.Buffer.capacity.

The capacity of this buffer, that is, the maximum number of bytes it can contain.
private void
checkCopyIntoArgs(int srcPos, int length, int destPos, int destLength)

private void
checkGet(int index, int size)

private void
private void
private void
checkRead(int index, int size)

private void
checkSet(int index, int size)

private void
checkWrite(int index, int size, boolean mayExpand)

public Buffer
compact()

Implements io.netty5.buffer.Buffer.compact.

Discards the read bytes, and moves the buffer contents to the beginning of the buffer.
public Buffer
copy(int
The offset where copying should start from. This is the offset of the first byte copied.
offset
,
int
The number of bytes to copy, and the capacity of the returned buffer.
length
,
boolean
The desired readOnly() state of the returned buffer.
readOnly
)

Implements io.netty5.buffer.Buffer.copy.

Returns a copy of the given region of this buffer.
public void
copyInto(int
The byte offset into this buffer from where the copying should start; the byte at this offset in this buffer will be copied to the destPos index in the dest array.
srcPos
,
byte[]
The destination byte array.
dest
,
int
The index into the dest array from where the copying should start.
destPos
,
int
The number of bytes to copy.
length
)

Implements io.netty5.buffer.Buffer.copyInto.

Copies the given length of data from this buffer into the given destination array, beginning at the given source position in this buffer, and the given destination position in the destination array.
public void
copyInto(int
The byte offset into this buffer from where the copying should start; the byte at this offset in this buffer will be copied to the destPos index in the dest ByteBuffer.
srcPos
,
ByteBuffer
The destination byte buffer.
dest
,
int
The index into the dest ByteBuffer from where the copying should start.
destPos
,
int
The number of bytes to copy.
length
)

Implements io.netty5.buffer.Buffer.copyInto.

Copies the given length of data from this buffer into the given destination byte buffer, beginning at the given source position in this buffer, and the given destination position in the destination byte buffer.
public void
copyInto(int
The byte offset into this buffer from where the copying should start; the byte at this offset in this buffer will be copied to the destPos index in the dest buffer.
srcPos
,
Buffer
The destination buffer.
dest
,
int
The index into the dest buffer from where the copying should start.
destPos
,
int
The number of bytes to copy.
length
)

Implements io.netty5.buffer.Buffer.copyInto.

Copies the given length of data from this buffer into the given destination buffer, beginning at the given source position in this buffer, and the given destination position in the destination buffer.
private void
copyIntoArray(int srcPos, byte[] dest, int destPos, int length)

public int
countComponents()

Implements io.netty5.buffer.Buffer.countComponents.

Get the number of components in this buffer.
public int
countReadableComponents()

Implements io.netty5.buffer.Buffer.countReadableComponents.

Get the number of "components" in this buffer, that are readable.
public int
countWritableComponents()

Implements io.netty5.buffer.Buffer.countWritableComponents.

Get the number of "components" in this buffer, that are writable.
protected RuntimeException
private Drop<UnsafeBuffer>
public Buffer
ensureWritable(int
The requested number of bytes of space that should be available for writing.
size
,
int
The minimum number of bytes to grow by. If it is determined that memory should be allocated and copied, make sure that the new memory allocation is bigger than the old one by at least this many bytes. This way, the buffer can grow by more than what is immediately necessary, thus amortising the costs of allocating and copying.
minimumGrowth
,
boolean
true if the method is allowed to modify the reader offset and writer offset, otherwise false.
allowCompaction
)

Implements io.netty5.buffer.Buffer.ensureWritable.

Ensures that this buffer has at least the given number of bytes of available space for writing.
public Buffer
fill(byte
The byte value to write at every offset in the buffer.
value
)

Implements io.netty5.buffer.Buffer.fill.

Fills the buffer with the given byte value.
public UnsafeBuffer
first()

Implements io.netty5.buffer.ComponentIterator.first.

Get the first component of the iteration, or null if there are no components.
public <T extends BufferComponent & ComponentIterator.Next> ComponentIterator<T>
forEachComponent()

Implements io.netty5.buffer.Buffer.forEachComponent.

Create a component iterator for all components in this buffer.
public byte
getByte(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getByte.

Get the byte value at the given reader offset.
public char
getChar(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getChar.

Get the char value at the given reader offset.
public double
getDouble(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getDouble.

Get the double value at the given reader offset.
public float
getFloat(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getFloat.

Get the float value at the given reader offset.
public int
getInt(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getInt.

Get the int value at the given reader offset.
public long
getLong(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getLong.

Get the long value at the given reader offset.
public int
getMedium(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getMedium.

Get the int value at the given reader offset.
public short
getShort(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getShort.

Get the short value at the given reader offset.
public int
getUnsignedByte(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getUnsignedByte.

Get the unsigned byte value at the given reader offset.
public long
getUnsignedInt(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getUnsignedInt.

Get the unsigned int value at the given reader offset.
public int
getUnsignedMedium(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getUnsignedMedium.

Get the unsigned int value at the given reader offset.
public int
getUnsignedShort(int
The read offset, an absolute offset into this buffer, to read from.
roff
)

Implements io.netty5.buffer.BufferAccessor.getUnsignedShort.

Get the unsigned short value at the given reader offset.
private void
handleWriteAccessBoundsFailure(int index, int size, boolean mayExpand)

public boolean
hasReadableArray()

Implements io.netty5.buffer.BufferComponent.hasReadableArray.

Check if this component is backed by a cached byte array that can be accessed cheaply.
public boolean
hasWritableArray()

Implements io.netty5.buffer.BufferComponent.hasWritableArray.

Check if this component is backed by a cached byte array that can be accessed cheaply.
public Buffer
implicitCapacityLimit(int
The maximum size this buffers capacity will implicitly grow to via write* methods.
limit
)

Implements io.netty5.buffer.Buffer.implicitCapacityLimit.

Set an upper limit to the implicit capacity growth.
public int
implicitCapacityLimit()

Implements io.netty5.buffer.Buffer.implicitCapacityLimit.

Returns the implicit capacity limit of the buffer.
public boolean
isDirect()

Implements io.netty5.buffer.Buffer.isDirect.

Queries if this buffer is backed by native memory, or not.
private byte
loadByte(long off)

private char
loadChar(long offset)

private char
loadCharUnaligned(long offset)

private double
loadDouble(long offset)

private double
loadDoubleUnaligned(long offset)

private float
loadFloat(long offset)

private float
loadFloatUnaligned(long offset)

private int
loadInt(long offset)

private int
loadIntUnaligned(long offset)

private long
loadLong(long offset)

private long
loadLongUnaligned(long offset)

private short
loadShort(long offset)

private short
loadShortUnaligned(long offset)

protected void
makeInaccessible()

Overrides io.netty5.buffer.internal.ResourceSupport.makeInaccessible.

Called when this resource needs to be considered inaccessible.
public Buffer
makeReadOnly()

Implements io.netty5.buffer.Buffer.makeReadOnly.

Makes this buffer read-only.
public ByteBuffer
private long
pack-priv UnsafeBuffer
public <N extends ComponentIterator.Next & BufferComponent> N
next()

Implements io.netty5.buffer.ComponentIterator.Next.next.

Get the next component of the iteration, or null if there are no more components.
public ByteCursor
openCursor()

Implements io.netty5.buffer.BufferComponent.openCursor, io.netty5.buffer.Buffer.openCursor.

Open a cursor to iterate the readable bytes of this component.
public ByteCursor
openCursor(int
The offset into the buffer where iteration should start. The first byte read from the iterator will be the byte at this offset.
fromOffset
,
int
The number of bytes to iterate.
length
)

Implements io.netty5.buffer.Buffer.openCursor.

Opens a cursor to iterate the given number bytes of this buffer, starting at the given offset.
public ByteCursor
openReverseCursor(int
The offset into the buffer where iteration should start. The first byte read from the iterator will be the byte at this offset.
fromOffset
,
int
The number of bytes to iterate.
length
)

Implements io.netty5.buffer.Buffer.openReverseCursor.

Opens a cursor to iterate the given number bytes of this buffer, in reverse, starting at the given offset.
private IndexOutOfBoundsException
outOfBounds(int index, int size)

protected Owned<UnsafeBuffer>
prepareSend()

Implements abstract io.netty5.buffer.internal.ResourceSupport.prepareSend.

Prepare this instance for ownership transfer.
public byte[]
readableArray()

Implements io.netty5.buffer.BufferComponent.readableArray.

Get a byte array of the contents of this component.
public int
readableArrayLength()

Implements io.netty5.buffer.BufferComponent.readableArrayLength.

The number of bytes in the readableArray() that belong to this component.
public int
readableArrayOffset()

Implements io.netty5.buffer.BufferComponent.readableArrayOffset.

An offset into the readableArray() where this component starts.
public ByteBuffer
readableBuffer()

Implements io.netty5.buffer.BufferComponent.readableBuffer.

Get a ByteBuffer instance for this memory component.
public int
readableBytes()

Overrides default io.netty5.buffer.Buffer.readableBytes.

Implements io.netty5.buffer.BufferComponent.readableBytes.

Get the number of readable bytes from this component.
public long
readableNativeAddress()

Implements io.netty5.buffer.BufferComponent.readableNativeAddress.

Give the native memory address backing this buffer, or return 0 if this buffer has no native memory address.
private RuntimeException
readAccessCheckException(int index, int size)

public byte
readByte()

Implements io.netty5.buffer.BufferAccessor.readByte.

Read the byte value at the current Buffer#readerOffset(), and increases the reader offset by Byte#BYTES.
public char
readChar()

Implements io.netty5.buffer.BufferAccessor.readChar.

Read the char value at the current Buffer#readerOffset(), and increases the reader offset by 2.
public double
readDouble()

Implements io.netty5.buffer.BufferAccessor.readDouble.

Read the double value at the current Buffer#readerOffset(), and increases the reader offset by Double#BYTES.
public int
readerOffset()

Implements io.netty5.buffer.Buffer.readerOffset.

Get the current reader offset.
public Buffer
readerOffset(int
The reader offset to set.
offset
)

Implements io.netty5.buffer.Buffer.readerOffset.

Set the reader offset.
public float
readFloat()

Implements io.netty5.buffer.BufferAccessor.readFloat.

Read the float value at the current Buffer#readerOffset(), and increases the reader offset by Float#BYTES.
public int
readInt()

Implements io.netty5.buffer.BufferAccessor.readInt.

Read the int value at the current Buffer#readerOffset(), and increases the reader offset by Integer#BYTES.
public long
readLong()

Implements io.netty5.buffer.BufferAccessor.readLong.

Read the long value at the current Buffer#readerOffset(), and increases the reader offset by Long#BYTES.
public int
readMedium()

Implements io.netty5.buffer.BufferAccessor.readMedium.

Read the int value at the current Buffer#readerOffset(), and increases the reader offset by 3.
public boolean
readOnly()

Implements io.netty5.buffer.Buffer.readOnly.

Queries if this buffer is read-only or not.
public short
readShort()

Implements io.netty5.buffer.BufferAccessor.readShort.

Read the short value at the current Buffer#readerOffset(), and increases the reader offset by Short#BYTES.
public int
readUnsignedByte()

Implements io.netty5.buffer.BufferAccessor.readUnsignedByte.

Read the unsigned byte value at the current Buffer#readerOffset(), and increases the reader offset by Byte#BYTES.
public long
readUnsignedInt()

Implements io.netty5.buffer.BufferAccessor.readUnsignedInt.

Read the unsigned int value at the current Buffer#readerOffset(), and increases the reader offset by Integer#BYTES.
public int
readUnsignedMedium()

Implements io.netty5.buffer.BufferAccessor.readUnsignedMedium.

Read the unsigned int value at the current Buffer#readerOffset(), and increases the reader offset by 3.
public int
readUnsignedShort()

Implements io.netty5.buffer.BufferAccessor.readUnsignedShort.

Read the unsigned short value at the current Buffer#readerOffset(), and increases the reader offset by Short#BYTES.
pack-priv Object
public Buffer
setByte(int
The write offset, an absolute offset into this buffer to write to.
woff
,
byte
The byte value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setByte.

Set the given byte value at the given write offset.
public Buffer
setChar(int
The write offset, an absolute offset into this buffer to write to.
woff
,
char
The char value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setChar.

Set the given char value at the given write offset.
public Buffer
setDouble(int
The write offset, an absolute offset into this buffer to write to.
woff
,
double
The double value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setDouble.

Set the given double value at the given write offset.
public Buffer
setFloat(int
The write offset, an absolute offset into this buffer to write to.
woff
,
float
The float value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setFloat.

Set the given float value at the given write offset.
public Buffer
setInt(int
The write offset, an absolute offset into this buffer to write to.
woff
,
int
The int value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setInt.

Set the given int value at the given write offset.
public Buffer
setLong(int
The write offset, an absolute offset into this buffer to write to.
woff
,
long
The long value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setLong.

Set the given long value at the given write offset.
public Buffer
setMedium(int
The write offset, an absolute offset into this buffer to write to.
woff
,
int
The int value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setMedium.

Set the given int value at the given write offset.
public Buffer
setShort(int
The write offset, an absolute offset into this buffer to write to.
woff
,
short
The short value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setShort.

Set the given short value at the given write offset.
public Buffer
setUnsignedByte(int
The write offset, an absolute offset into this buffer to write to.
woff
,
int
The int value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setUnsignedByte.

Set the given unsigned byte value at the given write offset.
public Buffer
setUnsignedInt(int
The write offset, an absolute offset into this buffer to write to.
woff
,
long
The long value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setUnsignedInt.

Set the given unsigned int value at the given write offset.
public Buffer
setUnsignedMedium(int
The write offset, an absolute offset into this buffer to write to.
woff
,
int
The int value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setUnsignedMedium.

Set the given unsigned int value at the given write offset.
public Buffer
setUnsignedShort(int
The write offset, an absolute offset into this buffer to write to.
woff
,
int
The int value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.setUnsignedShort.

Set the given unsigned short value at the given write offset.
public UnsafeBuffer
skipReadableBytes(int
The number of bytes read from this component.
delta
)

Overrides default io.netty5.buffer.Buffer.skipReadableBytes.

Implements io.netty5.buffer.BufferComponent.skipReadableBytes.

Move the read-offset to indicate that the given number of bytes were read from this component.
public UnsafeBuffer
skipWritableBytes(int
The number of bytes written to this component.
delta
)

Overrides default io.netty5.buffer.Buffer.skipWritableBytes.

Implements io.netty5.buffer.BufferComponent.skipWritableBytes.

Move the write-offset to indicate that the given number of bytes were written to this component.
public Buffer
split(int
The offset into this buffer where it should be split. After the split, the data at this offset will be at offset zero in this buffer.
splitOffset
)

Implements io.netty5.buffer.Buffer.split.

Splits the buffer into two, at the given splitOffset.
private void
storeByte(long offset, byte value)

private void
storeChar(long offset, char value)

private void
storeCharUnaligned(long offset, char value)

private void
storeDouble(long offset, double value)

private void
storeFloat(long offset, float value)

private void
storeInt(long offset, int value)

private void
storeIntUnaligned(long offset, int value)

private void
storeLong(long offset, long value)

private void
storeLongUnaligned(long offset, long value)

private void
storeShort(long offset, short value)

private void
storeShortUnaligned(long offset, short value)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public int
transferFrom(FileChannel
The channel to read from.
channel
,
long
The file position.
position
,
int
The maximum number of bytes to read.
length
)

Implements io.netty5.buffer.Buffer.transferFrom.

Read from the given channel starting from the given position and write to this buffer.
public int
transferFrom(ReadableByteChannel
The channel to read from.
channel
,
int
The maximum number of bytes to read.
length
)

Implements io.netty5.buffer.Buffer.transferFrom.

Read from the given channel and write to this buffer.
public int
transferTo(WritableByteChannel
The channel to write to.
channel
,
int
The maximum number of bytes to write.
length
)

Implements io.netty5.buffer.Buffer.transferTo.

Read from this buffer and write to the given channel.
private static byte
uncheckedLoadByte(Buffer buffer, int offset)

Used by bytesBefore(Buffer).

public byte[]
writableArray()

Implements io.netty5.buffer.BufferComponent.writableArray.

Get a byte array of the contents of this component.
public int
writableArrayLength()

Implements io.netty5.buffer.BufferComponent.writableArrayLength.

The number of bytes in the writableArray() that belong to this component.
public int
writableArrayOffset()

Implements io.netty5.buffer.BufferComponent.writableArrayOffset.

An offset into the writableArray() where this component starts.
public ByteBuffer
writableBuffer()

Implements io.netty5.buffer.BufferComponent.writableBuffer.

Get a ByteBuffer instance for this memory component, which can be used for modifying the buffer contents.
public int
writableBytes()

Overrides default io.netty5.buffer.Buffer.writableBytes.

Implements io.netty5.buffer.BufferComponent.writableBytes.

Get the space available to be written to this component, as a number of bytes.
public long
writableNativeAddress()

Implements io.netty5.buffer.BufferComponent.writableNativeAddress.

Give the native memory address backing this buffer, or return 0 if this buffer has no native memory address.
public Buffer
writeByte(byte
The byte value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeByte.

Write the given byte value at the current Buffer#writerOffset(), and increase the writer offset by Byte#BYTES.
public Buffer
writeChar(char
The char value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeChar.

Write the given char value at the current Buffer#writerOffset(), and increase the writer offset by 2.
public Buffer
writeDouble(double
The double value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeDouble.

Write the given double value at the current Buffer#writerOffset(), and increase the writer offset by Double#BYTES.
public Buffer
writeFloat(float
The float value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeFloat.

Write the given float value at the current Buffer#writerOffset(), and increase the writer offset by Float#BYTES.
public Buffer
writeInt(int
The int value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeInt.

Write the given int value at the current Buffer#writerOffset(), and increase the writer offset by Integer#BYTES.
public Buffer
writeLong(long
The long value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeLong.

Write the given long value at the current Buffer#writerOffset(), and increase the writer offset by Long#BYTES.
public Buffer
writeMedium(int
The int value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeMedium.

Write the given int value at the current Buffer#writerOffset(), and increase the writer offset by 3.
public int
writerOffset()

Implements io.netty5.buffer.Buffer.writerOffset.

Get the current writer offset.
public Buffer
writerOffset(int
The writer offset to set.
offset
)

Implements io.netty5.buffer.Buffer.writerOffset.

Set the writer offset.
public Buffer
writeShort(short
The short value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeShort.

Write the given short value at the current Buffer#writerOffset(), and increase the writer offset by Short#BYTES.
public Buffer
writeUnsignedByte(int
The int value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeUnsignedByte.

Write the given unsigned byte value at the current Buffer#writerOffset(), and increase the writer offset by Byte#BYTES.
public Buffer
writeUnsignedInt(long
The long value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeUnsignedInt.

Write the given unsigned int value at the current Buffer#writerOffset(), and increase the writer offset by Integer#BYTES.
public Buffer
writeUnsignedMedium(int
The int value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeUnsignedMedium.

Write the given unsigned int value at the current Buffer#writerOffset(), and increase the writer offset by 3.
public Buffer
writeUnsignedShort(int
The int value to write.
value
)

Implements io.netty5.buffer.BufferAccessor.writeUnsignedShort.

Write the given unsigned short value at the current Buffer#writerOffset(), and increase the writer offset by Short#BYTES.
Inherited from io.netty5.buffer.internal.AdaptableBuffer:
equalshashCodetouch