public interface ILcdBuffer
ILcdBuffer
defines methods to manage a buffer of bytes.
Buffer segments can be allocated and information can be retrieved. If a
buffer segment is allocated and the buffer doesn't have enough consecutive
bytes available, older segments are discarded to free up space.ILcdBufferSegment
Modifier and Type | Method and Description |
---|---|
ILcdBufferSegment |
allocateBufferSegment(int aCount)
Allocates a given number of bytes in this ILcdBuffer.
|
byte[] |
getByte()
Returns the bytes in this ILcdBuffer.
|
int |
getSize()
Returns the number of bytes in the buffer.
|
byte[] getByte()
int getSize()
ILcdBufferSegment allocateBufferSegment(int aCount) throws IllegalArgumentException
aCount
- the number of bytes to be allocated. It must not be larger
than the total buffer size.IllegalArgumentException
- when the requested number of bytes is larger
than the full buffer size.