8 #ifndef DBUSCXX_DEMARSHALING_H
9 #define DBUSCXX_DEMARSHALING_H
46 void set_data(
const uint8_t* data, uint32_t dataLen );
57 void align(
int alignment );
81 void is_valid( uint32_t numBytesWanted );
Routines for demarshaling data.
Definition: demarshaling.h:27
int16_t demarshalShortLittle()
Definition: demarshaling.cpp:226
void is_valid(uint32_t numBytesWanted)
Checks to make sure that we're not overruing any array via an assertion.
Definition: demarshaling.cpp:307
int64_t demarshal_int64_t()
Definition: demarshaling.cpp:90
uint8_t demarshal_uint8_t()
Definition: demarshaling.cpp:43
int64_t demarshalLongLittle()
Definition: demarshaling.cpp:288
DBUS_CXX_PROPAGATE_CONST(std::unique_ptr< priv_data >) m_priv
void set_data(const uint8_t *data, uint32_t dataLen)
Set the data C array to marshal/demarshal.
uint16_t demarshal_uint16_t()
Definition: demarshaling.cpp:66
Signature demarshal_signature()
Definition: demarshaling.cpp:139
uint32_t demarshal_uint32_t()
Definition: demarshaling.cpp:82
Demarshaling()
Definition: demarshaling.cpp:29
~Demarshaling()
Definition: demarshaling.cpp:40
int16_t demarshal_int16_t()
Definition: demarshaling.cpp:58
int32_t demarshal_int32_t()
Definition: demarshaling.cpp:74
Variant demarshal_variant()
Definition: demarshaling.cpp:149
uint64_t demarshal_uint64_t()
Definition: demarshaling.cpp:98
double demarshal_double()
Definition: demarshaling.cpp:106
uint32_t current_offset() const
Definition: demarshaling.cpp:326
int32_t demarshalIntLittle()
Definition: demarshaling.cpp:254
int64_t demarshalLongBig()
Definition: demarshaling.cpp:269
std::string demarshal_string()
Definition: demarshaling.cpp:121
void set_endianess(Endianess endian)
Definition: demarshaling.cpp:330
Path demarshal_path()
Definition: demarshaling.cpp:132
void set_data_offset(uint32_t offset)
Set the offset in the data to demarshal.
Definition: demarshaling.cpp:334
bool demarshal_boolean()
Definition: demarshaling.cpp:48
void align(int alignment)
Definition: demarshaling.cpp:312
int32_t demarshalIntBig()
Definition: demarshaling.cpp:239
int16_t demarshalShortBig()
Definition: demarshaling.cpp:212
Represents a DBus Path.
Definition: path.h:21
Represents a DBus signature.
Definition: signature.h:74
A Variant is a type-safe union for DBus operations.
Definition: variant.h:42
Global DBus namespace, where everything happens.
Definition: callmessage.cpp:18
Endianess
Definition: enums.h:114