#include <public/IDataPack.h>
Inherited by SourceMod::IDataPack.
Inheritance diagram for SourceMod::IDataReader:

Public Member Functions | |
| virtual void | Reset () const=0 |
| Resets the position in the data stream to the beginning. | |
| virtual size_t | GetPosition () const=0 |
| Retrieves the current stream position. | |
| virtual bool | SetPosition (size_t pos) const=0 |
| Sets the current stream position. | |
| virtual cell_t | ReadCell () const=0 |
| Reads one cell from the data stream. | |
| virtual float | ReadFloat () const=0 |
| Reads one float from the data stream. | |
| virtual bool | IsReadable (size_t bytes) const =0 |
| Returns whether or not a specified number of bytes from the current stream position to the end can be read. | |
| virtual const char * | ReadString (size_t *len) const =0 |
| Reads a string from the data stream. | |
| virtual void * | GetMemory () const=0 |
| Reads the current position as a generic address. | |
| virtual void * | ReadMemory (size_t *size) const =0 |
| Reads the current position as a generic data type. | |
Definition at line 48 of file IDataPack.h.
| virtual size_t SourceMod::IDataReader::GetPosition | ( | ) | const [pure virtual] |
Retrieves the current stream position.
| virtual bool SourceMod::IDataReader::SetPosition | ( | size_t | pos | ) | const [pure virtual] |
Sets the current stream position.
| pos | Index to set the stream at. |
| virtual cell_t SourceMod::IDataReader::ReadCell | ( | ) | const [pure virtual] |
Reads one cell from the data stream.
| virtual float SourceMod::IDataReader::ReadFloat | ( | ) | const [pure virtual] |
Reads one float from the data stream.
| virtual bool SourceMod::IDataReader::IsReadable | ( | size_t | bytes | ) | const [pure virtual] |
Returns whether or not a specified number of bytes from the current stream position to the end can be read.
| bytes | Number of bytes to simulate reading. |
| virtual const char* SourceMod::IDataReader::ReadString | ( | size_t * | len | ) | const [pure virtual] |
Reads a string from the data stream.
| len | Optional pointer to store the string length. |
| virtual void* SourceMod::IDataReader::GetMemory | ( | ) | const [pure virtual] |
Reads the current position as a generic address.
| virtual void* SourceMod::IDataReader::ReadMemory | ( | size_t * | size | ) | const [pure virtual] |
Reads the current position as a generic data type.
| size | Optional pointer to store the size of the data type. |
1.5.1