Interface StreamBuffer
access this type via: data.StreamBuffer (provides, requires or uses)
Utility interface to help place arbitrary amounts of bytes into a buffer, and read chunks of bytes back out of that buffer at a given chunk size.
Transfer fields
byte bufferContent[]
Functions
void write(byte ar[], optional int len)
byte[] read(int len)
int getSize()
Transfer fields
bufferContent The current contents of the buffer.
void write(byte ar[], optional int len)
Write new bytes to the end of the buffer.
ar The bytes to be appended.
len The number of bytes from 'ar' to be appended (default is all bytes).
byte[] read(int len)
Read a given number of bytes from the start of the buffer.
len The number of bytes to read.
int getSize()
Get the total number of bytes currently in the buffer.