Gnash  0.8.11dev
Classes | Namespaces | Enumerations | Functions
AMF.h File Reference
#include <string>
#include <cstdint>
#include "dsodefs.h"
#include "GnashException.h"

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

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...