#include <string>#include <cstring>#include <boost/cstdint.hpp>#include <boost/shared_ptr.hpp>#include "element.h"#include "dsodefs.h"Go to the source code of this file.
Classes | |
| class | cygnal::AMF |
| Binary representation of an ActionScript object. More... | |
Namespaces | |
| namespace | cygnal |
Action Message Format specific classes of libamf. | |
Functions | |
| void * | cygnal::swapBytes (void *word, size_t size) |
| Swap bytes in raw data. This only swaps bytes if the host byte order is little endian. | |
Variables | |
| const size_t | cygnal::AMF0_NUMBER_SIZE = 0x08 |
| All numbers in AMF format are 8 byte doubles. | |
| const boost::uint8_t | cygnal::AMF_HEADER_SIZE = 3 |
| The header size in bytes of an common AMF object. The size of an AMF header is a type field (1 byte), followed by a length field. (short). | |
| const boost::uint8_t | cygnal::AMF_PROP_HEADER_SIZE = 5 |
| The header size of a property. A property is a little different. It always assumes the the first field is a string that's the property name, then the type byte like a regular AMF object and length is used for the data. So a property object header is then only 5 bytes instead of the 6 that one assumes would be used. | |
| const boost::uint8_t | cygnal::AMF_VERSION = 0 |
| AMF version 0 is supported by default. | |
| const boost::uint8_t | cygnal::TERMINATOR = 0x09 |
| For terminating sequences, a byte with value 0x09 is used. | |
| const boost::uint16_t | cygnal::SANE_STR_SIZE = 65535 |
| The maximum size for a string. As if there is a parsing error, we'll often see the symptom of the length for the following value is bogus. Although the length field is a short, it seems silly to assume we'll ever see a string 65,000 characters long. Still, it makes sense to make this an adjustable thing. | |
1.7.1