Gnash
0.8.10
|
Go to the source code of this file.
Classes | |
class | gnash::amf::AMFException |
Exception for handling malformed buffers. More... | |
Namespaces | |
namespace | gnash |
Anonymous namespace for callbacks, local functions, event handlers etc. | |
namespace | 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 boost::uint8_t *&pos, const boost::uint8_t *end) |
Read a number from an AMF buffer. | |
bool | gnash::amf::readBoolean (const boost::uint8_t *&pos, const boost::uint8_t *end) |
Read a boolean value from the buffer. | |
std::string | gnash::amf::readString (const boost::uint8_t *&pos, const boost::uint8_t *end) |
Read a string value from the buffer. | |
std::string | gnash::amf::readLongString (const boost::uint8_t *&pos, const boost::uint8_t *end) |
Read a long string value from the buffer. | |
boost::uint16_t | gnash::amf::readNetworkShort (const boost::uint8_t *buf) |
Read an unsigned 16-bit value in network byte order. | |
boost::uint32_t | gnash::amf::readNetworkLong (const boost::uint8_t *buf) |
Read an unsigned 32-bit value in network byte order. | |
void | gnash::amf::write (SimpleBuffer &buf, const std::string &str) |
Write a string to an AMF buffer. | |
void | gnash::amf::write (SimpleBuffer &buf, const char *str) |
Write a C string to an AMF buffer. | |
void | gnash::amf::write (SimpleBuffer &buf, double d) |
Write a number to an AMF buffer. | |
void | gnash::amf::write (SimpleBuffer &buf, bool b) |
Write a boolean value to an AMF buffer. | |
void | gnash::amf::writePlainString (SimpleBuffer &buf, const std::string &str, Type t) |
Encode a plain short string to an AMF buffer. | |
void | gnash::amf::writePlainNumber (SimpleBuffer &buf, double d) |
Write a number to an AMF buffer. | |
template<typename T > | |
void | gnash::amf::writeProperty (SimpleBuffer &buf, const std::string &name, const T &t) |
Encode a string-value pair. |