Gnash  0.8.10
Namespaces | Functions
AMF.cpp File Reference
#include <map>
#include <algorithm>
#include "log.h"
#include "SimpleBuffer.h"
#include "AMF.h"

Namespaces

namespace  gnash
 

Anonymous namespace for callbacks, local functions, event handlers etc.


namespace  gnash::amf
 

Functions and classes for handling AMF.


Functions

bool gnash::amf::readBoolean (const boost::uint8_t *&pos, const boost::uint8_t *end)
 Read a boolean value from the buffer.
double gnash::amf::readNumber (const boost::uint8_t *&pos, const boost::uint8_t *end)
 Read a number from an AMF 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.
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.
void gnash::amf::write (SimpleBuffer &buf, const std::string &str)
 Write a 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.