Namespaces | Defines | Functions | Variables

amf.cpp File Reference

#include "GnashSystemNetHeaders.h"
#include "log.h"
#include "GnashException.h"
#include "buffer.h"
#include "amf.h"
#include "element.h"
#include "amfutf8.h"
#include <boost/shared_ptr.hpp>
#include <string>
#include <vector>
#include <map>
#include <boost/cstdint.hpp>
Include dependency graph for amf.cpp:

Namespaces

namespace  cygnal
 

Action Message Format specific classes of libamf.


Defines

#define ENSUREBYTES(from, toofar, size)

Functions

void * cygnal::swapBytes (void *word, size_t size)
 Swap bytes in raw data. This only swaps bytes if the host byte order is little endian.

Variables

const char * cygnal::amftype_str []
 String representations of AMF0 data types.

Define Documentation

#define ENSUREBYTES (   from,
  toofar,
  size 
)
Value:
{ \
        if ( from+size >= toofar ) \
                throw ParserException("Premature end of AMF stream"); \
}

ENSUREBYTES

Parameters:
from The base address to check.
tooFar The ending address that is one byte too many.
size The number of bytes to check for: from to tooFar.
Remarks:
May throw an Exception