#include <StrMod/InSerializer.h>
Public Methods | |
| InSerializer (const StrChunkPtr &ptr) | |
Construct an InSerializer that reads bytes from ptr. | |
| InSerializer (const void *buf, size_t len) | |
| Construct an InSerializer that reads bytes directly from a memory area. | |
| virtual | ~InSerializer () |
| It destroys things. :-). | |
| lcore::S1Byte | GetS1Byte () |
| Get a signed 1 octet value (2's complement) and move forward 1 octet. | |
| lcore::U1Byte | GetU1Byte () |
| Get an unsigned 1 octet value and move forward 1 octet. | |
| lcore::S2Byte | GetS2Byte () |
| Get a signed 2 octet value (2's complement) and move forward 2 octets. | |
| lcore::U2Byte | GetU2Byte () |
| Get an unsigned 2 octet value and move forward 2 octets. | |
| lcore::S4Byte | GetS4Byte () |
| Get a signed 4 octet value (2's complement) and move forward 2 octets. | |
| lcore::U4Byte | GetU4Byte () |
| Get an unsigned 4 octet value and move forward 2 octets. | |
| bool | GetBool () |
| Get a bool value and move forward 1 octet. | |
| const::std::string | GetString () |
| Get a string value. See OutSerializer for more on format. | |
| void | GetRaw (void *destbuf, size_t len) |
Get a len bytes and dump them in destbuf. | |
| size_t | BytesLeft () |
| How many bytes are there left to read? | |
| bool | HadError () const |
| Is the serializer in an error state. | |
This converts from a stream of bytes into more structured data.
See class OutSerializer for a more detailed explanation.
Definition at line 53 of file InSerializer.h.
1.3-rc1