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 |
appendLong | shared default Buffer appendLong(Integer l) Appends the specified
Returns a reference to |
appendShort | shared default Buffer appendShort(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 |
appendUnsignedShort | shared default Buffer appendUnsignedShort(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 |
getLong | shared default Integer getLong(Integer pos) Returns the |
getShort | shared default Integer getShort(Integer pos) Returns the |
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 |
getUnsignedShort | shared default Integer getUnsignedShort(Integer pos) Returns the unsigned |
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. |
setLong | shared default Buffer setLong(Integer pos, Integer l) Sets the 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. |
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. |
setUnsignedShort | shared default Buffer setUnsignedShort(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 |