AgentXcpp  Revision:4ac4848
Internals Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
/home/tanjeff/projekte/agentxcpp/src/helper.hpp File Reference
#include "types.hpp"
Include dependency graph for helper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint32_t read32 (data_t::const_iterator &pos, bool big_endian)
void write32 (data_t &serialized, uint32_t value)
 Write a 32-bit value into a string.
uint16_t read16 (data_t::const_iterator &pos, bool big_endian)
void write16 (data_t &serialized, uint16_t value)
 Write a 16-bit value into a string.

Function Documentation

uint16_t read16 ( data_t::const_iterator &  pos,
bool  big_endian 
) [inline]
uint32_t read32 ( data_t::const_iterator &  pos,
bool  big_endian 
) [inline]
void write16 ( data_t serialized,
uint16_t  value 
) [inline]

Write a 16-bit value into a string.

Parameters:
serializedThe string to which the value is appended.
valueThe value which is appended to the string.

Definition at line 87 of file helper.hpp.

Referenced by agentxcpp::GetBulkPDU::serialize(), and agentxcpp::ResponsePDU::serialize().

void write32 ( data_t serialized,
uint32_t  value 
) [inline]

Write a 32-bit value into a string.

Parameters:
serializedThe string to which the value is appended.
valueThe value which is appended to the string.

Definition at line 53 of file helper.hpp.

Referenced by agentxcpp::PDU::add_header(), agentxcpp::RegisterPDU::serialize(), and agentxcpp::ResponsePDU::serialize().