open class Buffer : ClusterSerializable
Most data is shuffled around inside Vert.x using buffers.
A buffer is a sequence of zero or more bytes that can read from or written to and which expands automatically as necessary to accommodate any bytes written to it. You can perhaps think of a buffer as smart byte array.
Please consult the documentation for more information on buffers.
NOTE: This class has been automatically generated from the io.vertx.core.buffer.Buffer non RX-ified interface using Vert.x codegen.
Buffer(delegate: Buffer) |
static val __TYPE_ARG: TypeArg<Buffer> |
open fun appendBuffer(buff: Buffer): Buffer
Appends the specified Returns a reference to open fun appendBuffer(buff: Buffer, offset: Int, len: Int): Buffer
Appends the specified Returns a reference to |
|
open fun appendByte(b: Byte): Buffer
Appends the specified Returns a reference to |
|
open fun appendDouble(d: Double): Buffer
Appends the specified Returns a reference to |
|
open fun appendFloat(f: Float): Buffer
Appends the specified Returns a reference to |
|
open fun appendInt(i: Int): Buffer
Appends the specified Returns a reference to |
|
open fun appendIntLE(i: Int): Buffer
Appends the specified Returns a reference to |
|
open fun appendLong(l: Long): Buffer
Appends the specified Returns a reference to |
|
open fun appendLongLE(l: Long): Buffer
Appends the specified Returns a reference to |
|
open fun appendMedium(i: Int): Buffer
Appends the specified 24bit Returns a reference to |
|
open fun appendMediumLE(i: Int): Buffer
Appends the specified 24bit Returns a reference to |
|
open fun appendShort(s: Short): Buffer
Appends the specified Returns a reference to |
|
open fun appendShortLE(s: Short): Buffer
Appends the specified Returns a reference to |
|
open fun appendString(str: String, enc: String): Buffer
Appends the specified The buffer will expand as necessary to accommodate any bytes written. Returns a reference to open fun appendString(str: String): Buffer
Appends the specified The buffer will expand as necessary to accommodate any bytes written. Returns a reference to |
|
open fun appendUnsignedByte(b: Short): Buffer
Appends the specified unsigned Returns a reference to |
|
open fun appendUnsignedInt(i: Long): Buffer
Appends the specified unsigned Returns a reference to |
|
open fun appendUnsignedIntLE(i: Long): Buffer
Appends the specified unsigned Returns a reference to |
|
open fun appendUnsignedShort(s: Int): Buffer
Appends the specified unsigned Returns a reference to |
|
open fun appendUnsignedShortLE(s: Int): Buffer
Appends the specified unsigned Returns a reference to |
|
open static fun buffer(): Buffer
Create a new, empty buffer. open static fun buffer(initialSizeHint: Int): Buffer
Create a new buffer given the initial size hint. If you know the buffer will require a certain size, providing the hint can prevent unnecessary re-allocations as the buffer is written to and resized. open static fun buffer(string: String): Buffer
Create a new buffer from a string. The string will be UTF-8 encoded into the buffer. open static fun buffer(string: String, enc: String): Buffer
Create a new buffer from a string and using the specified encoding. The string will be encoded into the buffer using the specified encoding. |
|
open fun copy(): Buffer
Returns a copy of the entire Buffer. |
|
open fun equals(other: Any?): Boolean |
|
open fun getBuffer(start: Int, end: Int): Buffer
Returns a copy of a sub-sequence the Buffer as a io.vertx.reactivex.core.buffer.Buffer starting at position |
|
open fun getByte(pos: Int): Byte
Returns the |
|
open fun getDelegate(): Buffer |
|
open fun getDouble(pos: Int): Double
Returns the |
|
open fun getFloat(pos: Int): Float
Returns the |
|
open fun getInt(pos: Int): Int
Returns the |
|
open fun getIntLE(pos: Int): Int
Gets a 32-bit integer at the specified absolute |
|
open fun getLong(pos: Int): Long
Returns the |
|
open fun getLongLE(pos: Int): Long
Gets a 64-bit long integer at the specified absolute |
|
open fun getMedium(pos: Int): Int
Gets a 24-bit medium integer at the specified absolute |
|
open fun getMediumLE(pos: Int): Int
Gets a 24-bit medium integer at the specified absolute |
|
open fun getShort(pos: Int): Short
Returns the |
|
open fun getShortLE(pos: Int): Short
Gets a 16-bit short integer at the specified absolute |
|
open fun getString(start: Int, end: Int, enc: String): String
Returns a copy of a sub-sequence the Buffer as a open fun getString(start: Int, end: Int): String
Returns a copy of a sub-sequence the Buffer as a |
|
open fun getUnsignedByte(pos: Int): Short
Returns the unsigned |
|
open fun getUnsignedInt(pos: Int): Long
Returns the unsigned |
|
open fun getUnsignedIntLE(pos: Int): Long
Returns the unsigned |
|
open fun getUnsignedMedium(pos: Int): Int
Gets an unsigned 24-bit medium integer at the specified absolute |
|
open fun getUnsignedMediumLE(pos: Int): Int
Gets an unsigned 24-bit medium integer at the specified absolute |
|
open fun getUnsignedShort(pos: Int): Int
Returns the unsigned |
|
open fun getUnsignedShortLE(pos: Int): Int
Gets an unsigned 16-bit short integer at the specified absolute |
|
open fun hashCode(): Int |
|
open fun length(): Int
Returns the length of the buffer, measured in bytes. All positions are indexed from zero. |
|
open static fun newInstance(arg: Buffer): Buffer |
|
open fun readFromBuffer(pos: Int, buffer: Buffer): Int |
|
open fun setBuffer(pos: Int, b: Buffer): Buffer
Sets the bytes at position The buffer will expand as necessary to accommodate any value written. open fun setBuffer(pos: Int, b: Buffer, offset: Int, len: Int): Buffer
Sets the bytes at position The buffer will expand as necessary to accommodate any value written. |
|
open fun setByte(pos: Int, b: Byte): Buffer
Sets the The buffer will expand as necessary to accommodate any value written. |
|
open fun setDouble(pos: Int, d: Double): Buffer
Sets the The buffer will expand as necessary to accommodate any value written. |
|
open fun setFloat(pos: Int, f: Float): Buffer
Sets the The buffer will expand as necessary to accommodate any value written. |
|
open fun setInt(pos: Int, i: Int): Buffer
Sets the The buffer will expand as necessary to accommodate any value written. |
|
open fun setIntLE(pos: Int, i: Int): Buffer
Sets the The buffer will expand as necessary to accommodate any value written. |
|
open fun setLong(pos: Int, l: Long): Buffer
Sets the The buffer will expand as necessary to accommodate any value written. |
|
open fun setLongLE(pos: Int, l: Long): Buffer
Sets the The buffer will expand as necessary to accommodate any value written. |
|
open fun setMedium(pos: Int, i: Int): Buffer
Sets the 24bit The buffer will expand as necessary to accommodate any value written. |
|
open fun setMediumLE(pos: Int, i: Int): Buffer
Sets the 24bit The buffer will expand as necessary to accommodate any value written. |
|
open fun setShort(pos: Int, s: Short): Buffer
Sets the The buffer will expand as necessary to accommodate any value written. |
|
open fun setShortLE(pos: Int, s: Short): Buffer
Sets the The buffer will expand as necessary to accommodate any value written. |
|
open fun setString(pos: Int, str: String): Buffer
Sets the bytes at position The buffer will expand as necessary to accommodate any value written. open fun setString(pos: Int, str: String, enc: String): Buffer
Sets the bytes at position The buffer will expand as necessary to accommodate any value written. |
|
open fun setUnsignedByte(pos: Int, b: Short): Buffer
Sets the unsigned The buffer will expand as necessary to accommodate any value written. |
|
open fun setUnsignedInt(pos: Int, i: Long): Buffer
Sets the unsigned The buffer will expand as necessary to accommodate any value written. |
|
open fun setUnsignedIntLE(pos: Int, i: Long): Buffer
Sets the unsigned The buffer will expand as necessary to accommodate any value written. |
|
open fun setUnsignedShort(pos: Int, s: Int): Buffer
Sets the unsigned The buffer will expand as necessary to accommodate any value written. |
|
open fun setUnsignedShortLE(pos: Int, s: Int): Buffer
Sets the unsigned The buffer will expand as necessary to accommodate any value written. |
|
open fun slice(): Bufferopen fun slice(start: Int, end: Int): Buffer
Returns a slice of this buffer. Modifying the content of the returned buffer or this buffer affects each other's content while they maintain separate indexes and marks. |
|
open fun toJsonArray(): JsonArray
Returns a Json array representation of the Buffer |
|
open fun toJsonObject(): JsonObject
Returns a Json object representation of the Buffer |
|
open fun toString(): String
Returns a open fun toString(enc: String): String
Returns a |
|
open fun writeToBuffer(buffer: Buffer): Unit |