#include <oscl_bin_stream.h>
Inheritance diagram for OsclBinStream:
Public Methods | |
OsclBinStream () | |
bool | good () |
This method determines if the stream is ok. | |
bool | eof () |
This method determines if end of stream has been reached. | |
bool | fail () |
This method determines if an error has occured in the stream. | |
void | Attach (void *buffer, uint32 l_length) |
This methods specifies the data buffer to attach to the stream. | |
void | Attach (const uint32 numFragments, const OsclMemoryFragment *fragPtr) |
This method specifies the memory fragment array to use for input. | |
uint32 | tellg () |
This method returns the current stream position. | |
void | Seek (uint32 absPosition) |
This method seeks to the specified stream position. | |
uint32 | PositionInBlock () |
This method returns the current stream position. | |
void | seekFromCurrentPosition (int32 offset) |
This method seeks to the specified offset from the current location. | |
Protected Types | |
enum | state_t { GOOD_STATE, EOF_STATE, FAIL_STATE } |
Protected Methods | |
bool | ReserveSpace (uint32 size) |
bool | HaveRoomInCurrentBlock (uint32 size) |
Protected Attributes | |
state_t | state |
uint8 * | pBasePosition |
uint8 * | pPosition |
uint32 | length |
const OsclMemoryFragment * | nextFragPtr |
int | fragsLeft |
const OsclMemoryFragment * | firstFragPtr |
int | numFrags |
OsclMemoryFragment | specialFragBuffer |
|
|
|
|
|
This method specifies the memory fragment array to use for input. This array should remain static while the stream refers to it.
|
|
This methods specifies the data buffer to attach to the stream.
|
|
This method determines if end of stream has been reached.
|
|
This method determines if an error has occured in the stream.
|
|
This method determines if the stream is ok.
|
|
|
|
This method returns the current stream position.
|
|
|
|
This method seeks to the specified stream position.
|
|
This method seeks to the specified offset from the current location.
|
|
This method returns the current stream position. This method is to be used if the input stream is a pointer to the MemoryFragment array
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|