- buffer
Create a new buffer from a byte[]. The byte[] will be copied to form the buffer.
- toString
Returns a String representation of the Buffer with the encoding specified by enc
- getBytes
Transfers the content of the Buffer into a byte[] at the specific destination.
- length
Returns the length of the buffer, measured in bytes. All positions are indexed
from zero.
- appendBuffer
Appends the specified Buffer starting at the offset using len to the end of this
Buffer. The buffer
- appendBytes
Appends the specified number of bytes from byte[] to the end of the Buffer,
starting at the given of
- appendString
Appends the specified String to the end of the Buffer with the encoding as
specified by enc. The buf
- toJsonObject
Returns a Json object representation of the Buffer
- appendByte
Appends the specified byte to the end of the Buffer. The buffer will expand as
necessary to accommod
- getByte
Returns the byte at position pos in the Buffer.
- appendInt
Appends the specified int to the end of the Buffer. The buffer will expand as
necessary to accommoda
- getInt
Returns the int at position pos in the Buffer.