MistServer
2.5.3-Pro-19-gf5e75b1 ( Generic_64)
|
Holds all AMF parsing and creation related functions and classes. More...
Data Structures | |
class | Object |
Recursive class that holds AMF0 objects. More... | |
class | Object3 |
Recursive class that holds AMF3 objects. More... | |
Functions | |
Object | parse (const unsigned char *data, unsigned int len) |
Parses a C-string to a valid AMF::Object. More... | |
Object | parse (std::string data) |
Parses a std::string to a valid AMF::Object. More... | |
Object3 | parse3 (const unsigned char *data, unsigned int len) |
Parses a C-string to a valid AMF::Object3. More... | |
Object3 | parse3 (std::string data) |
Parses a std::string to a valid AMF::Object3. More... | |
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. More... | |
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. More... | |
Holds all AMF parsing and creation related functions and classes.
enum AMF::obj0type |
Enumerates all possible AMF0 types, adding a special DDVTECH container type for ease of use.
enum AMF::obj0type |
Enumerates all possible AMF0 types, adding a special DDVTECH container type for ease of use.
enum AMF::obj3type |
Enumerates all possible AMF3 types, adding a special DDVTECH container type for ease of use.
enum AMF::obj3type |
Enumerates all possible AMF3 types, adding a special DDVTECH container type for ease of use.
Object AMF::parse | ( | const unsigned char * | data, |
unsigned int | len | ||
) |
Parses a C-string to a valid AMF::Object.
This function will find all AMF objects in the string and return them all packed in a single AMF::AMF0_DDV_CONTAINER AMF::Object.
Object AMF::parse | ( | std::string | data | ) |
Parses a std::string to a valid AMF::Object.
This function will find all AMF objects in the string and return them all packed in a single AMF::AMF0_DDV_CONTAINER AMF::Object.
Object3 AMF::parse3 | ( | const unsigned char * | data, |
unsigned int | len | ||
) |
Parses a C-string to a valid AMF::Object3.
This function will find all AMF3 objects in the string and return them all packed in a single AMF::AMF3_DDV_CONTAINER AMF::Object3.
Object3 AMF::parse3 | ( | std::string | data | ) |
Parses a std::string to a valid AMF::Object3.
This function will find all AMF3 objects in the string and return them all packed in a single AMF::AMF3_DDV_CONTAINER AMF::Object3.
Object AMF::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.
This function updates i every call with the new position in the data.
data | The raw data to parse. |
len | The size of the raw data. |
i | Current parsing position in the raw data. |
name | Indice name for any new object created. |
Object3 AMF::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.
This function updates i every call with the new position in the data.
data | The raw data to parse. |
len | The size of the raw data. |
i | Current parsing position in the raw data. |
name | Indice name for any new object created. |