Android Programming Press on the image to return to the main documentation page.

SLByteArrayBuffer

Written by Steve Laming

List of types:

SLByteArrayBuffer

SLByteArrayBuffer


Events:

None

Members:


  AppendByte (b() As Byte, off As Int, len As Int)

  AppendChar (b() As Char, off As Int, len As Int)

  AppendInt (b As Int)

  Buffer As Byte()

  ByteAt (i As Int) As Int

  Capacity As Int

  Clear

  Initialize (capacity As Int)

  IsEmpty As Boolean

  IsFull As Boolean

  length As Int

  SetLength (len As Int)

  ToByteArray As Byte()

Members description:

AppendByte (b() As Byte, off As Int, len As Int)
Appends len bytes to this buffer from the given source array starting at index off.
AppendChar (b() As Char, off As Int, len As Int)
Appends len chars to this buffer from the given source array starting at index off.
AppendInt (b As Int)
Appends b byte to this buffer.
Buffer As Byte()
Returns reference to the underlying byte array.
ByteAt (i As Int) As Int
Returns the byte value in this buffer at the specified index.
Capacity As Int
Returns the current capacity.
Clear
Clears content of the buffer.
Initialize (capacity As Int)
ByteArrayBuffer(int capacity)
Initialize the ByteArrayBuffer to the given capacity.
IsEmpty As Boolean
Returns true if this buffer is empty, that is, its length() is equal to 0.
IsFull As Boolean
Returns true if this buffer is full, that is, its length() is equal to its capacity().
length As Int
Returns the length of the buffer (byte count).
SetLength (len As Int)
Sets the length of the buffer.
ToByteArray As Byte()
Converts the content of this buffer to an array of bytes.
Top