class Tlv

<Type,Length,Value> Read and Write TLV records. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

<Type,Length,Value> Read and Write TLV records.

 Tlv ()

Tlv

bool  open (string& fname, bool read)

open

Open file for reading or writing.

Parameters:

fnamefilename or '-' for stdin/stdout.
readtrue if the file is to be opened for reading, false if opened for writing.

Returns: true on success

bool  read (uint32_t& type, vector<uint8_t>& data)

read

Read a TLV entry from the file.

Returns: true on success

bool  write (uint32_t type, vector<uint8_t>& data)

write

Write a TLV entry to the file.

Returns: true on success

bool  close ()

close

Close the TLV file.

Returns: true on success

bool  get32 (vector<uint8_t>& data, uint32_t offset, uint32_t& u32)

get32

bool  put32 (vector<uint8_t>& data, uint32_t offset, uint32_t u32)

put32


Generated by: pavlin on possum.icir.org on Wed Mar 21 11:22:16 2007, using kdoc $.