class AS4Segment


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

 AS4Segment (const uint8_t* d)
throw(CorruptMessage)

AS4Segment

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 kobe.xorp.net on Wed Jan 7 19:11:04 2009, using kdoc 2.0a54+XORP.