MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
Data Structures | Namespaces | Enumerations | Functions
amf.h File Reference
#include <vector>
#include <iostream>
#include <string>

Go to the source code of this file.

Data Structures

class  AMF::Object
 Recursive class that holds AMF0 objects. More...
 
class  AMF::Object3
 Recursive class that holds AMF3 objects. More...
 

Namespaces

 AMF
 Holds all AMF parsing and creation related functions and classes.
 

Enumerations

enum  AMF::obj0type {
  AMF::AMF0_NUMBER = 0x00, AMF::AMF0_BOOL = 0x01, AMF::AMF0_STRING = 0x02, AMF::AMF0_OBJECT = 0x03,
  AMF::AMF0_MOVIECLIP = 0x04, AMF::AMF0_NULL = 0x05, AMF::AMF0_UNDEFINED = 0x06, AMF::AMF0_REFERENCE = 0x07,
  AMF::AMF0_ECMA_ARRAY = 0x08, AMF::AMF0_OBJ_END = 0x09, AMF::AMF0_STRICT_ARRAY = 0x0A, AMF::AMF0_DATE = 0x0B,
  AMF::AMF0_LONGSTRING = 0x0C, AMF::AMF0_UNSUPPORTED = 0x0D, AMF::AMF0_RECORDSET = 0x0E, AMF::AMF0_XMLDOC = 0x0F,
  AMF::AMF0_TYPED_OBJ = 0x10, AMF::AMF0_UPGRADE = 0x11, AMF::AMF0_DDV_CONTAINER = 0xFF, AMF::AMF0_NUMBER = 0x00,
  AMF::AMF0_BOOL = 0x01, AMF::AMF0_STRING = 0x02, AMF::AMF0_OBJECT = 0x03, AMF::AMF0_MOVIECLIP = 0x04,
  AMF::AMF0_NULL = 0x05, AMF::AMF0_UNDEFINED = 0x06, AMF::AMF0_REFERENCE = 0x07, AMF::AMF0_ECMA_ARRAY = 0x08,
  AMF::AMF0_OBJ_END = 0x09, AMF::AMF0_STRICT_ARRAY = 0x0A, AMF::AMF0_DATE = 0x0B, AMF::AMF0_LONGSTRING = 0x0C,
  AMF::AMF0_UNSUPPORTED = 0x0D, AMF::AMF0_RECORDSET = 0x0E, AMF::AMF0_XMLDOC = 0x0F, AMF::AMF0_TYPED_OBJ = 0x10,
  AMF::AMF0_UPGRADE = 0x11, AMF::AMF0_DDV_CONTAINER = 0xFF
}
 Enumerates all possible AMF0 types, adding a special DDVTECH container type for ease of use. More...
 
enum  AMF::obj3type {
  AMF::AMF3_UNDEFINED = 0x00, AMF::AMF3_NULL = 0x01, AMF::AMF3_FALSE = 0x02, AMF::AMF3_TRUE = 0x03,
  AMF::AMF3_INTEGER = 0x04, AMF::AMF3_DOUBLE = 0x05, AMF::AMF3_STRING = 0x06, AMF::AMF3_XMLDOC = 0x07,
  AMF::AMF3_DATE = 0x08, AMF::AMF3_ARRAY = 0x09, AMF::AMF3_OBJECT = 0x0A, AMF::AMF3_XML = 0x0B,
  AMF::AMF3_BYTES = 0x0C, AMF::AMF3_DDV_CONTAINER = 0xFF, AMF::AMF3_UNDEFINED = 0x00, AMF::AMF3_NULL = 0x01,
  AMF::AMF3_FALSE = 0x02, AMF::AMF3_TRUE = 0x03, AMF::AMF3_INTEGER = 0x04, AMF::AMF3_DOUBLE = 0x05,
  AMF::AMF3_STRING = 0x06, AMF::AMF3_XMLDOC = 0x07, AMF::AMF3_DATE = 0x08, AMF::AMF3_ARRAY = 0x09,
  AMF::AMF3_OBJECT = 0x0A, AMF::AMF3_XML = 0x0B, AMF::AMF3_BYTES = 0x0C, AMF::AMF3_DDV_CONTAINER = 0xFF
}
 Enumerates all possible AMF3 types, adding a special DDVTECH container type for ease of use. More...
 

Functions

Object AMF::parse (const unsigned char *data, unsigned int len)
 Parses a C-string to a valid AMF::Object. More...
 
Object AMF::parse (std::string data)
 Parses a std::string to a valid AMF::Object. More...
 
Object3 AMF::parse3 (const unsigned char *data, unsigned int len)
 Parses a C-string to a valid AMF::Object3. More...
 
Object3 AMF::parse3 (std::string data)
 Parses a std::string to a valid AMF::Object3. More...
 
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. More...
 
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. More...