class NewAsSegment


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 NewAsSegment (const uint8_t* d)
throw(CorruptMessage)

NewAsSegment

void  decode (const uint8_t *d)
throw(CorruptMessage)

decode

Convert the external representation into the internal one. _type is d[0], _entries is d[1], entries follow.

Reimplemented from AsSegment.

const uint8_t * encode (size_t &len, uint8_t *buf)

encode

[const]

Convert from internal to external representation. If we do not pass a buffer (buf = 0), then the routine will allocate a new one; otherwise, len indicates the size of the input buffer, which must be large enough to store the encoding.

Returns: the pointer to the buffer, len is the actual size.

Reimplemented from AsSegment.

size_t  wire_size ()

wire_size

[const]

Returns: the size of the list on the wire.

Reimplemented from AsSegment.


Generated by: pavlin on possum.icir.org on Thu Mar 9 04:43:34 2006, using kdoc $.