72 std::string
Print(std::string indent =
"");
84 Object parse(
const unsigned char * data,
unsigned int len);
88 Object parseOne(
const unsigned char *& data,
unsigned int & len,
unsigned int & i, std::string name);
111 std::string
Print(std::string indent =
"");
124 Object3 parse3(
const unsigned char * data,
unsigned int len);
128 Object3 parseOne3(
const unsigned char *& data,
unsigned int & len,
unsigned int & i, std::string name);
std::string Pack()
Packs the AMF object to a std::string for transfer over the network.
Definition: amf.cpp:226
const char * Str()
Returns the C-string value of this object, if available.
Definition: amf.cpp:32
Object3 parseOne3(const unsigned char *&data, unsigned int &len, unsigned int &i, std::string name)
Parses a single AMF3 type - used recursively by the AMF::parse3() functions.
Definition: amf.cpp:781
std::vector< Object > contents
Holds this objects contents, if any (for container types).
Definition: amf.h:79
std::string strval
Holds this objects string value, if any.
Definition: amf.h:77
Object parseOne(const unsigned char *&data, unsigned int &len, unsigned int &i, std::string name)
Parses a single AMF0 type - used recursively by the AMF::parse() functions.
Definition: amf.cpp:369
Object * getContentP(unsigned int i)
Returns a pointer to the object held at indice i.
Definition: amf.cpp:50
Object getContent(unsigned int i)
Returns a copy of the object held at indice i.
Definition: amf.cpp:60
Object()
Default constructor.
Definition: amf.cpp:90
obj0type GetType()
Returns the AMF::obj0type AMF0 object type for this object.
Definition: amf.cpp:14
double numval
Holds this objects numeric value, if any.
Definition: amf.h:78
double dblval
Holds this objects double value, if any.
Definition: amf.h:117
obj0type myType
Holds this objects AMF0 type.
Definition: amf.h:76
obj0type
Enumerates all possible AMF0 types, adding a special DDVTECH container type for ease of use...
Definition: amf.h:13
Object parse(const unsigned char *data, unsigned int len)
Parses a C-string to a valid AMF::Object.
Definition: amf.cpp:506
std::string strval
Holds this objects string value, if any.
Definition: amf.h:116
Recursive class that holds AMF0 objects.
Definition: amf.h:55
std::string StrValue()
Returns the std::string value of this object, if available.
Definition: amf.cpp:26
std::string myIndice
Holds this objects indice, if any.
Definition: amf.h:75
obj3type
Enumerates all possible AMF3 types, adding a special DDVTECH container type for ease of use...
Definition: amf.h:36
Holds all AMF parsing and creation related functions and classes.
Definition: amf.h:10
std::string myIndice
Holds this objects indice, if any.
Definition: amf.h:114
void addContent(AMF::Object c)
Adds an AMF::Object to this object. Works for all types, but only makes sense for container types...
Definition: amf.cpp:43
int intval
Holds this objects int value, if any.
Definition: amf.h:118
double NumValue()
Returns the numeric value of this object, if available.
Definition: amf.cpp:20
Recursive class that holds AMF3 objects.
Definition: amf.h:92
int hasContent()
Returns a count of the amount of objects this object currently holds.
Definition: amf.cpp:38
std::string Indice()
Returns the std::string Indice for the current object, if available.
Definition: amf.cpp:9
obj3type myType
Holds this objects AMF0 type.
Definition: amf.h:115
std::vector< Object3 > contents
Holds this objects contents, if any (for container types).
Definition: amf.h:119
Object3 parse3(const unsigned char *data, unsigned int len)
Parses a C-string to a valid AMF::Object3.
Definition: amf.cpp:1128
std::string Print(std::string indent="")
Return the contents as a human-readable string.
Definition: amf.cpp:133