|
Gnash
0.8.11dev
|
Go to the source code of this file.
Classes | |
| class | gnash::amf::AMFException |
| Exception for handling malformed buffers. More... | |
Namespaces | |
| gnash | |
| Anonymous namespace for callbacks, local functions, event handlers etc. | |
| gnash::amf | |
| Functions and classes for handling AMF. | |
Enumerations | |
| enum | gnash::amf::Type { gnash::amf::NOTYPE = -1, gnash::amf::NUMBER_AMF0 = 0x00, gnash::amf::BOOLEAN_AMF0 = 0x01, gnash::amf::STRING_AMF0 = 0x02, gnash::amf::OBJECT_AMF0 = 0x03, gnash::amf::MOVIECLIP_AMF0 = 0x04, gnash::amf::NULL_AMF0 = 0x05, gnash::amf::UNDEFINED_AMF0 = 0x06, gnash::amf::REFERENCE_AMF0 = 0x07, gnash::amf::ECMA_ARRAY_AMF0 = 0x08, gnash::amf::OBJECT_END_AMF0 = 0x09, gnash::amf::STRICT_ARRAY_AMF0 = 0x0a, gnash::amf::DATE_AMF0 = 0x0b, gnash::amf::LONG_STRING_AMF0 = 0x0c, gnash::amf::UNSUPPORTED_AMF0 = 0x0d, gnash::amf::RECORD_SET_AMF0 = 0x0e, gnash::amf::XML_OBJECT_AMF0 = 0x0f, gnash::amf::TYPED_OBJECT_AMF0 = 0x10 } |
Functions | |
| double | gnash::amf::readNumber (const std::uint8_t *&pos, const std::uint8_t *end) |
| Read a number from an AMF buffer. More... | |
| bool | gnash::amf::readBoolean (const std::uint8_t *&pos, const std::uint8_t *end) |
| Read a boolean value from the buffer. More... | |
| std::string | gnash::amf::readString (const std::uint8_t *&pos, const std::uint8_t *end) |
| Read a string value from the buffer. More... | |
| std::string | gnash::amf::readLongString (const std::uint8_t *&pos, const std::uint8_t *end) |
| Read a long string value from the buffer. More... | |
| std::uint16_t | gnash::amf::readNetworkShort (const std::uint8_t *buf) |
| Read an unsigned 16-bit value in network byte order. More... | |
| std::uint32_t | gnash::amf::readNetworkLong (const std::uint8_t *buf) |
| Read an unsigned 32-bit value in network byte order. More... | |
| void | gnash::amf::write (SimpleBuffer &buf, const std::string &str) |
| Write a string to an AMF buffer. More... | |
| void | gnash::amf::write (SimpleBuffer &buf, const char *str) |
| Write a C string to an AMF buffer. More... | |
| void | gnash::amf::write (SimpleBuffer &buf, double d) |
| Write a number to an AMF buffer. More... | |
| void | gnash::amf::write (SimpleBuffer &buf, bool b) |
| Write a boolean value to an AMF buffer. More... | |
| void | gnash::amf::writePlainString (SimpleBuffer &buf, const std::string &str, Type t) |
| Encode a plain short string to an AMF buffer. More... | |
| void | gnash::amf::writePlainNumber (SimpleBuffer &buf, double d) |
| Write a number to an AMF buffer. More... | |
| template<typename T > | |
| void | gnash::amf::writeProperty (SimpleBuffer &buf, const std::string &name, const T &t) |
| Encode a string-value pair. More... | |
1.8.12