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

Namespaces

 gnash
 Anonymous namespace for callbacks, local functions, event handlers etc.
 
 gnash::amf
 Functions and classes for handling AMF.
 

Functions

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