![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
A ring buffer used by LZS streams. More...
#include <VGearsLZSDataStream.h>
Public Member Functions | |
RingBuffer () | |
Constructor. More... | |
void | Write (const void *in_buffer) |
Writes to the buffer from other buffer. More... | |
size_t | Read (void *out_buffer, size_t count) |
Reads data from the buffer and extracts it into other buffer. More... | |
uint8 | Get (const size_t offset) |
Gets data from the buffer at an offset. More... | |
size_t | Available () const |
Checks the available data size in the buffer. More... | |
void | clear () |
Protected Attributes | |
uint8 | buffer_ [buffer_size] |
The buffer. More... | |
size_t | position_ |
Current buffer position. More... | |
size_t | available_ |
Available data to read. More... | |
A ring buffer used by LZS streams.
|
inline |
Constructor.
|
inline |
Checks the available data size in the buffer.
|
inline |
|
inline |
Gets data from the buffer at an offset.
[in] | offset | Offset to the data to read. |
|
inline |
Reads data from the buffer and extracts it into other buffer.
[out] | out_buffer | Buffer to copy the data from this buffer. |
[in] | count | Number of bytes to read. |
|
inline |
Writes to the buffer from other buffer.
[in] | in_buffer | The buffer to write from. |
|
protected |
Available data to read.
|
protected |
The buffer.
|
protected |
Current buffer position.