References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
ByteBuf reader index, assuming that
the first logical byte of this buffer maps to the first logical byte of the wrapped buffer.
If a ByteBuf is wrapped and requires a reader index, then the buffer should be
sliced or copied at the given index.
This buffer implementation maps its length to the wrapped ByteBuf writer index.
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private Buffer | |
| public Buffer | appendBuffer(Buffer buff)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendBuffer(Buffer buff, int offset, int len)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendByte(byte b)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendBytes(byte[] bytes)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendBytes(byte[] bytes, int offset, int len)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified number of bytes from |
| public Buffer | appendDouble(double d)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendFloat(float f)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendInt(int i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendIntLE(int i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendLong(long l)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendLongLE(long l)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendMedium(int i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified 24bit |
| public Buffer | appendMediumLE(int i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified 24bit |
| public Buffer | appendShort(short s)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendShortLE(short s)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendString(String str, String enc)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendString(String str)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified |
| public Buffer | appendUnsignedByte(short b)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified unsigned |
| public Buffer | appendUnsignedInt(long i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified unsigned |
| public Buffer | appendUnsignedIntLE(long i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified unsigned |
| public Buffer | appendUnsignedShort(int s)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified unsigned |
| public Buffer | appendUnsignedShortLE(int s)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Appends the specified unsigned |
| public static Buffer | buffer(int
the hint, in bytes initialSizeHint)Hides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Create a new buffer given the initial size hint. |
| public static Buffer | buffer()
Hides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Create a new, empty buffer. |
| public static Buffer | buffer(String
the string str)Hides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Create a new buffer from a string. |
| public static Buffer | buffer(String
the string str, String enc)Hides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Create a new buffer from a string and using the specified encoding. |
| public static Buffer | buffer(byte[]
the byte array bytes)Hides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Create a new buffer from a byte[]. |
| public static Buffer | buffer(ByteBuf
the Netty ByteBuf byteBuffer)Hides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Create a new buffer from a Netty |
| public ByteBuf | |
| private void | |
| public Buffer | copy()
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Returns a copy of the entire Buffer. |
| private void | |
| private void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Buffer | getBuffer(int start, int end)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Returns a copy of a sub-sequence the Buffer as a |
| public byte | getByte(int pos)
Implements io. Returns the |
| public ByteBuf | getByteBuf()
Implements io. Returns the Buffer as a Netty |
| public byte[] | getBytes()
Implements io. Returns a copy of the entire Buffer as a |
| public byte[] | getBytes(int start, int end)
Implements io. Returns a copy of a sub-sequence the Buffer as a |
| public Buffer | getBytes(byte[]
the destination byte array dst)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Transfers the content of the Buffer into a |
| public Buffer | getBytes(byte[]
the destination byte array dst, int dstIndex)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Transfers the content of the Buffer into a |
| public Buffer | getBytes(int start, int end, byte[]
the destination byte array dst)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Transfers the content of the Buffer starting at position |
| public Buffer | getBytes(int start, int end, byte[]
the destination byte array dst, int dstIndex)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Transfers the content of the Buffer starting at position |
| public double | getDouble(int pos)
Implements io. Returns the |
| public float | getFloat(int pos)
Implements io. Returns the |
| public int | getInt(int pos)
Implements io. Returns the |
| public int | getIntLE(int pos)
Implements io. Gets a 32-bit integer at the specified absolute |
| public long | getLong(int pos)
Implements io. Returns the |
| public long | getLongLE(int pos)
Implements io. Gets a 64-bit long integer at the specified absolute |
| public int | getMedium(int pos)
Implements io. Gets a 24-bit medium integer at the specified absolute |
| public int | getMediumLE(int pos)
Implements io. Gets a 24-bit medium integer at the specified absolute |
| public short | getShort(int pos)
Implements io. Returns the |
| public short | getShortLE(int pos)
Implements io. Gets a 16-bit short integer at the specified absolute |
| public String | getString(int start, int end, String enc)
Implements io. Returns a copy of a sub-sequence the Buffer as a |
| public String | getString(int start, int end)
Implements io. Returns a copy of a sub-sequence the Buffer as a |
| public short | getUnsignedByte(int pos)
Implements io. Returns the unsigned |
| public long | getUnsignedInt(int pos)
Implements io. Returns the unsigned |
| public long | getUnsignedIntLE(int pos)
Implements io. Returns the unsigned |
| public int | getUnsignedMedium(int pos)
Implements io. Gets an unsigned 24-bit medium integer at the specified absolute |
| public int | getUnsignedMediumLE(int pos)
Implements io. Gets an unsigned 24-bit medium integer at the specified absolute |
| public int | getUnsignedShort(int pos)
Implements io. Returns the unsigned |
| public int | getUnsignedShortLE(int pos)
Implements io. Gets an unsigned 16-bit short integer at the specified absolute |
| public int | |
| public int | length()
Implements io. Returns the length of the buffer, measured in bytes. |
| public int | readFromBuffer(int
the position where to start reading the pos, Buffer bufferthe buffer)Buffer where the serialized bytes must be read fromImplements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Method invoked when deserializing bytes to this instance. |
| public Buffer | setBuffer(int pos, Buffer buff)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the bytes at position |
| public Buffer | setBuffer(int pos, Buffer buffer, int offset, int len)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the bytes at position |
| public Buffer | setByte(int pos, byte b)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the |
| public BufferImpl | setBytes(int pos, ByteBuffer b)
Implements io.
References Deprecated
BufferImpl is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the bytes at position |
| public Buffer | setBytes(int pos, byte[] b)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the bytes at position |
| public Buffer | setBytes(int pos, byte[] b, int offset, int len)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the given number of bytes at position |
| private Buffer | |
| public Buffer | setDouble(int pos, double d)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the |
| public Buffer | setFloat(int pos, float f)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the |
| private void | |
| public Buffer | setInt(int pos, int i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the |
| public Buffer | setIntLE(int pos, int i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the |
| public Buffer | setLong(int pos, long l)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the |
| public Buffer | setLongLE(int pos, long l)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the |
| public Buffer | setMedium(int pos, int i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the 24bit |
| public Buffer | setMediumLE(int pos, int i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the 24bit |
| public Buffer | setShort(int pos, short s)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the |
| public Buffer | setShortLE(int pos, short s)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the |
| public Buffer | setString(int pos, String str)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the bytes at position |
| public Buffer | setString(int pos, String str, String enc)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the bytes at position |
| public Buffer | setUnsignedByte(int pos, short b)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the unsigned |
| public Buffer | setUnsignedInt(int pos, long i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the unsigned |
| public Buffer | setUnsignedIntLE(int pos, long i)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the unsigned |
| public Buffer | setUnsignedShort(int pos, int s)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the unsigned |
| public Buffer | setUnsignedShortLE(int pos, int s)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the unsigned |
| public Buffer | slice()
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Returns a slice of this buffer. |
| public Buffer | slice(int start, int end)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Returns a slice of this buffer. |
| public JsonArray | toJsonArray()
Implements io.
References Deprecated
JsonArray is deprecated or references (maybe indirectly) at least one deprecated element.
Returns a |
| public JsonObject | toJsonObject()
Implements io.
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Returns a |
| public String | toString()
Overrides java. Implements io. Returns a |
| public String | toString(String enc)
Implements io. Returns a |
| public String | toString(Charset enc)
Implements io. Returns a |
| public void | writeToBuffer(Buffer
the buff)Buffer where the serialized bytes must be written toImplements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Method invoked when serializing this instance. |