This is a wrapper for the org.apache.http.util.ByteArrayBuffer class. It allows the resizing of the buffer which is useful for buffering very large amounts of data without the buffer continually growing (i.e. audio streaming).
SLByteArrayBuffer
Author: Steve Laming
Version: 1
V1.0 attached unzip the .jar and .xml files to you additional libraries folder.
SLByteArrayBuffer
Author: Steve Laming
Version: 1
- SLByteArrayBuffer
Methods:- 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(). - SetLength (len As Int)
Sets the length of the buffer. - ToByteArray As Byte[]
Converts the content of this buffer to an array of bytes. - length As Int
Returns the length of the buffer (byte count).
- AppendByte (b() As Byte, off As Int, len As Int)
V1.0 attached unzip the .jar and .xml files to you additional libraries folder.