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.
Anything
Object
Buffer
Basic
Identifiable
Object
Anything
no subtypes hierarchy
Initializer |
Buffer(Buffer unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
appendBuffer | shared default Buffer appendBuffer(Buffer buff) Appends the specified
Returns a reference to |
appendBuffer | shared default Buffer appendBuffer(Buffer buff, Integer offset, Integer len) Appends the specified
Returns a reference to |
appendByte | shared default Buffer appendByte(Byte b) Appends the specified
Returns a reference to |
appendDouble | shared default Buffer appendDouble(Float d) Appends the specified
Returns a reference to |
appendFloat | shared default Buffer appendFloat(Float f) Appends the specified
Returns a reference to |
appendInt | shared default Buffer appendInt(Integer i) Appends the specified
Returns a reference to |
appendIntLE | shared default Buffer appendIntLE(Integer i) Appends the specified
Returns a reference to |
appendLong | shared default Buffer appendLong(Integer l) Appends the specified
Returns a reference to |
appendLongLE | shared default Buffer appendLongLE(Integer l) Appends the specified
Returns a reference to |
appendMedium | shared default Buffer appendMedium(Integer i) Appends the specified 24bit
Returns a reference to |
appendMediumLE | shared default Buffer appendMediumLE(Integer i) Appends the specified 24bit
Returns a reference to |
appendShort | shared default Buffer appendShort(Integer s) Appends the specified
Returns a reference to |
appendShortLE | shared default Buffer appendShortLE(Integer s) Appends the specified
Returns a reference to |
appendString | shared default Buffer appendString(String str) Appends the specified The buffer will expand as necessary to accommodate any bytes written.
Returns a reference to |
appendString | shared default Buffer appendString(String str, String enc) Appends the specified The buffer will expand as necessary to accommodate any bytes written.
Returns a reference to |
appendUnsignedByte | shared default Buffer appendUnsignedByte(Integer b) Appends the specified unsigned
Returns a reference to |
appendUnsignedInt | shared default Buffer appendUnsignedInt(Integer i) Appends the specified unsigned
Returns a reference to |
appendUnsignedIntLE | shared default Buffer appendUnsignedIntLE(Integer i) Appends the specified unsigned
Returns a reference to |
appendUnsignedShort | shared default Buffer appendUnsignedShort(Integer s) Appends the specified unsigned
Returns a reference to |
appendUnsignedShortLE | shared default Buffer appendUnsignedShortLE(Integer s) Appends the specified unsigned
Returns a reference to |
copy | shared default Buffer copy() Returns a copy of the entire Buffer. |
getBuffer | shared default Buffer getBuffer(Integer start, Integer end) Returns a copy of a sub-sequence the Buffer as a Buffer starting at position |
getByte | shared default Byte getByte(Integer pos) Returns the |
getDouble | shared default Float getDouble(Integer pos) Returns the |
getFloat | shared default Float getFloat(Integer pos) Returns the |
getInt | shared default Integer getInt(Integer pos) Returns the |
getIntLE | shared default Integer getIntLE(Integer pos) Gets a 32-bit integer at the specified absolute |
getLong | shared default Integer getLong(Integer pos) Returns the |
getLongLE | shared default Integer getLongLE(Integer pos) Gets a 64-bit long integer at the specified absolute |
getMedium | shared default Integer getMedium(Integer pos) Gets a 24-bit medium integer at the specified absolute |
getMediumLE | shared default Integer getMediumLE(Integer pos) Gets a 24-bit medium integer at the specified absolute |
getShort | shared default Integer getShort(Integer pos) Returns the |
getShortLE | shared default Integer getShortLE(Integer pos) Gets a 16-bit short integer at the specified absolute |
getString | shared default String getString(Integer start, Integer end) Returns a copy of a sub-sequence the Buffer as a |
getString | shared default String getString(Integer start, Integer end, String enc) Returns a copy of a sub-sequence the Buffer as a |
getUnsignedByte | shared default Integer getUnsignedByte(Integer pos) Returns the unsigned |
getUnsignedInt | shared default Integer getUnsignedInt(Integer pos) Returns the unsigned |
getUnsignedIntLE | shared default Integer getUnsignedIntLE(Integer pos) Returns the unsigned |
getUnsignedMedium | shared default Integer getUnsignedMedium(Integer pos) Gets an unsigned 24-bit medium integer at the specified absolute |
getUnsignedMediumLE | shared default Integer getUnsignedMediumLE(Integer pos) Gets an unsigned 24-bit medium integer at the specified absolute |
getUnsignedShort | shared default Integer getUnsignedShort(Integer pos) Returns the unsigned |
getUnsignedShortLE | shared default Integer getUnsignedShortLE(Integer pos) Gets an unsigned 16-bit short integer at the specified absolute |
length | shared default Integer length() Returns the length of the buffer, measured in bytes. All positions are indexed from zero. |
setBuffer | shared default Buffer setBuffer(Integer pos, Buffer b) Sets the bytes at position The buffer will expand as necessary to accommodate any value written. |
setBuffer | shared default Buffer setBuffer(Integer pos, Buffer b, Integer offset, Integer len) Sets the bytes at position The buffer will expand as necessary to accommodate any value written. |
setByte | shared default Buffer setByte(Integer pos, Byte b) Sets the The buffer will expand as necessary to accommodate any value written. |
setDouble | shared default Buffer setDouble(Integer pos, Float d) Sets the The buffer will expand as necessary to accommodate any value written. |
setFloat | shared default Buffer setFloat(Integer pos, Float f) Sets the The buffer will expand as necessary to accommodate any value written. |
setInt | shared default Buffer setInt(Integer pos, Integer i) Sets the The buffer will expand as necessary to accommodate any value written. |
setIntLE | shared default Buffer setIntLE(Integer pos, Integer i) Sets the The buffer will expand as necessary to accommodate any value written. |
setLong | shared default Buffer setLong(Integer pos, Integer l) Sets the The buffer will expand as necessary to accommodate any value written. |
setLongLE | shared default Buffer setLongLE(Integer pos, Integer l) Sets the The buffer will expand as necessary to accommodate any value written. |
setMedium | shared default Buffer setMedium(Integer pos, Integer i) Sets the 24bit The buffer will expand as necessary to accommodate any value written. |
setMediumLE | shared default Buffer setMediumLE(Integer pos, Integer i) Sets the 24bit The buffer will expand as necessary to accommodate any value written. |
setShort | shared default Buffer setShort(Integer pos, Integer s) Sets the The buffer will expand as necessary to accommodate any value written. |
setShortLE | shared default Buffer setShortLE(Integer pos, Integer s) Sets the The buffer will expand as necessary to accommodate any value written. |
setString | shared default Buffer setString(Integer pos, String str) Sets the bytes at position The buffer will expand as necessary to accommodate any value written. |
setString | shared default Buffer setString(Integer pos, String str, String enc) Sets the bytes at position The buffer will expand as necessary to accommodate any value written. |
setUnsignedByte | shared default Buffer setUnsignedByte(Integer pos, Integer b) Sets the unsigned The buffer will expand as necessary to accommodate any value written. |
setUnsignedInt | shared default Buffer setUnsignedInt(Integer pos, Integer i) Sets the unsigned The buffer will expand as necessary to accommodate any value written. |
setUnsignedIntLE | shared default Buffer setUnsignedIntLE(Integer pos, Integer i) Sets the unsigned The buffer will expand as necessary to accommodate any value written. |
setUnsignedShort | shared default Buffer setUnsignedShort(Integer pos, Integer s) Sets the unsigned The buffer will expand as necessary to accommodate any value written. |
setUnsignedShortLE | shared default Buffer setUnsignedShortLE(Integer pos, Integer s) Sets the unsigned The buffer will expand as necessary to accommodate any value written. |
slice | shared default Buffer slice() 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. |
slice | shared default Buffer slice(Integer start, Integer end) 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. |
toJsonArray | shared default Array toJsonArray() Returns a Json array representation of the Buffer |
toJsonObject | shared default Object toJsonObject() Returns a Json object representation of the Buffer |
toString | shared default String toString(String enc) Returns a |
Inherited Methods |
Methods inherited from: Object equals |