|
| ||||||||||||||||
<Type,Length,Value> Read and Write TLV records.
| Tlv ()
| Tlv |
| bool open (string& fname, bool read)
| open |
Open file for reading or writing.
Parameters:
| fname | filename or '-' for stdin/stdout. |
| read | true 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 |