Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

strmod::strmod::InSerializer Class Reference

Provides a simple way to 'deserialize' a StrChunk. More...

#include <StrMod/InSerializer.h>

List of all members.

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.


Detailed Description

Provides a simple way to 'deserialize' a StrChunk.

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.


The documentation for this class was generated from the following files:
Generated on Wed Jan 29 00:32:54 2003 for libNet by doxygen1.3-rc1