Namespaces | Defines | Variables

sol.cpp File Reference

#include "GnashSystemNetHeaders.h"
#include "GnashFileUtilities.h"
#include "element.h"
#include "amf.h"
#include "buffer.h"
#include "sol.h"
#include "log.h"
#include "GnashException.h"
#include <boost/scoped_array.hpp>
#include <boost/cstdint.hpp>
#include <boost/shared_ptr.hpp>
#include <cerrno>
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <cassert>
Include dependency graph for sol.cpp:

Namespaces

namespace  cygnal
 

Action Message Format specific classes of libamf.


Defines

#define ENSUREBYTES(from, toofar, size)

Variables

const short SOL_MAGIC = 0x00bf
const short SOL_BLOCK_MARK = 0x0004

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

Referenced by cygnal::SOL::readFile().


Variable Documentation

const short SOL_BLOCK_MARK = 0x0004
const short SOL_MAGIC = 0x00bf