- asReadOnlyBuffer
ByteBuffer asReadOnlyBuffer()
Undocumented in source. Be warned that the author may not have intended to support it.
- compact
ByteBuffer compact()
Undocumented in source. Be warned that the author may not have intended to support it.
- duplicate
ByteBuffer duplicate()
Undocumented in source. Be warned that the author may not have intended to support it.
- get
byte get()
Undocumented in source. Be warned that the author may not have intended to support it.
- get
byte get(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
- get
ByteBuffer get(byte[] dst, int offset, int length)
Undocumented in source. Be warned that the author may not have intended to support it.
- getInt
int getInt()
Undocumented in source. Be warned that the author may not have intended to support it.
- getInt
int getInt(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
- getLong
long getLong()
Undocumented in source. Be warned that the author may not have intended to support it.
- getLong
long getLong(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
- getShort
short getShort()
Undocumented in source. Be warned that the author may not have intended to support it.
- getShort
short getShort(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
- isDirect
bool isDirect()
Undocumented in source. Be warned that the author may not have intended to support it.
- isReadOnly
bool isReadOnly()
Undocumented in source. Be warned that the author may not have intended to support it.
- put
ByteBuffer put(byte x)
Undocumented in source. Be warned that the author may not have intended to support it.
- put
ByteBuffer put(int i, byte x)
Undocumented in source. Be warned that the author may not have intended to support it.
- put
ByteBuffer put(byte[] src, int offset, int length)
Undocumented in source. Be warned that the author may not have intended to support it.
- put
ByteBuffer put(ByteBuffer src)
Undocumented in source. Be warned that the author may not have intended to support it.
- putInt
ByteBuffer putInt(int x)
Undocumented in source. Be warned that the author may not have intended to support it.
- putInt
ByteBuffer putInt(int i, int x)
Undocumented in source. Be warned that the author may not have intended to support it.
- putLong
ByteBuffer putLong(int i, long x)
Undocumented in source. Be warned that the author may not have intended to support it.
- putLong
ByteBuffer putLong(long x)
Undocumented in source. Be warned that the author may not have intended to support it.
- putShort
ByteBuffer putShort(short x)
Undocumented in source. Be warned that the author may not have intended to support it.
- putShort
ByteBuffer putShort(int i, short x)
Undocumented in source. Be warned that the author may not have intended to support it.
- slice
ByteBuffer slice()
Undocumented in source. Be warned that the author may not have intended to support it.
- hb
byte[] hb;
Undocumented in source.
- offset
int offset;
Undocumented in source.
- bigEndian
bool bigEndian;
Undocumented in source.
- order
ByteOrder order()
Retrieves this buffer's byte order.
- order
ByteBuffer order(ByteOrder bo)
Modifies this buffer's byte order.
- allocateDirect
deprecated ByteBuffer allocateDirect(int capacity)
Allocates a new direct byte buffer.
- allocate
deprecated ByteBuffer allocate(size_t capacity)
Allocates a new byte buffer.
- wrap
deprecated ByteBuffer wrap(byte[] array, int offset, int length)
Wraps a byte array into a buffer.
- wrap
deprecated ByteBuffer wrap(byte[] array)
Wraps a byte array into a buffer.
- slice
ByteBuffer slice()
Creates a new byte buffer whose content is a shared subsequence of
this buffer's content.
- duplicate
ByteBuffer duplicate()
Creates a new byte buffer that shares this buffer's content.
- asReadOnlyBuffer
ByteBuffer asReadOnlyBuffer()
Creates a new, read-only byte buffer that shares this buffer's
content.
- get
byte get()
Relative <i>get</i> method. Reads the byte at this buffer's
current position, and then increments the position.
- put
ByteBuffer put(byte b)
Relative <i>put</i> method <i>(optional operation)</i>.
- get
byte get(int index)
Absolute <i>get</i> method. Reads the byte at the given
index.
- put
ByteBuffer put(int index, byte b)
Absolute <i>put</i> method <i>(optional operation)</i>.
- get
ByteBuffer get(byte[] dst, int offset, int length)
Relative bulk <i>get</i> method.
- get
ByteBuffer get(byte[] dst)
Relative bulk <i>get</i> method.
- put
ByteBuffer put(ByteBuffer src)
Relative bulk <i>put</i> method <i>(optional operation)</i>.
- put
ByteBuffer put(byte[] src, int offset, int length)
Relative bulk <i>put</i> method <i>(optional operation)</i>.
- put
ByteBuffer put(byte[] src)
Relative bulk <i>put</i> method <i>(optional operation)</i>.
- put
ByteBuffer put(string src)
Undocumented in source. Be warned that the author may not have intended to support it.
- getShort
short getShort()
Relative <i>get</i> method for reading a short value.
- putShort
ByteBuffer putShort(short value)
Relative <i>put</i> method for writing a short
value <i>(optional operation)</i>.
- getShort
short getShort(int index)
Absolute <i>get</i> method for reading a short value.
- putShort
ByteBuffer putShort(int index, short value)
Absolute <i>put</i> method for writing a short
value <i>(optional operation)</i>.
- getInt
int getInt()
Relative <i>get</i> method for reading an int value.
- putInt
ByteBuffer putInt(int value)
Relative <i>put</i> method for writing an int
value <i>(optional operation)</i>.
- getInt
int getInt(int index)
Absolute <i>get</i> method for reading an int value.
- putInt
ByteBuffer putInt(int index, int value)
Absolute <i>put</i> method for writing an int
value <i>(optional operation)</i>.
- getLong
long getLong()
Relative <i>get</i> method for reading a long value.
- putLong
ByteBuffer putLong(long value)
Relative <i>put</i> method for writing a long
value <i>(optional operation)</i>.
- getLong
long getLong(int index)
Absolute <i>get</i> method for reading a long value.
- putLong
ByteBuffer putLong(int index, long value)
Absolute <i>put</i> method for writing a long
value <i>(optional operation)</i>.
- hasArray
bool hasArray()
Tells whether or not this buffer is backed by an accessible byte
array.
- array
byte[] array()
Returns the byte array that backs this
buffer <i>(optional operation)</i>.
- arrayOffset
int arrayOffset()
Returns the offset within this buffer's backing array of the first
element of the buffer <i>(optional operation)</i>.
- compact
ByteBuffer compact()
Compacts this buffer <i>(optional operation)</i>.
- get
T get()
Relative <i>get</i> method for reading an int value.
- get
T get(int index)
Absolute <i>get</i> method for reading an int value.
- put
ByteBuffer put(T value)
Relative <i>put</i> method for writing a short
value <i>(optional operation)</i>.
- put
ByteBuffer put(int index, T value)
Absolute <i>put</i> method for writing a short
value <i>(optional operation)</i>.
- ix
int ix(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
- byteOffset
size_t byteOffset(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
- getString
string getString(size_t offset, size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
- getRemaining
byte[] getRemaining()
Undocumented in source. Be warned that the author may not have intended to support it.
- toString
string toString()
Returns a string summarizing the state of this buffer.