#include <cerrno>#include <vector>#include <string>#include <cstring>#include <boost/cstdint.hpp>#include <boost/shared_ptr.hpp>#include "log.h"#include "buffer.h"#include "amf.h"#include "SharedMem.h"#include "element.h"#include "GnashException.h"#include "lcshm.h"Namespaces | |
| namespace | cygnal |
Action Message Format specific classes of libamf. | |
Defines | |
| #define | MAXHOSTNAMELEN 64 |
| #define | ENSUREBYTES(from, toofar, size) |
Variables | |
| const int | cygnal::AMF_BOOLEAN_SIZE = 3 |
| const int | cygnal::LC_HEADER_SIZE = 16 |
| const int | cygnal::MAX_LC_HEADER_SIZE = 40960 |
| const int | cygnal::LC_LISTENERS_START = MAX_LC_HEADER_SIZE + LC_HEADER_SIZE |
| #define ENSUREBYTES | ( | from, | ||
| toofar, | ||||
| size | ||||
| ) |
{ \
if ( from+size >= toofar ) \
throw gnash::ParserException("Premature end of AMF stream"); \
}
ENSUREBYTES
| 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. |
Referenced by cygnal::LcShm::parseHeader().
| #define MAXHOSTNAMELEN 64 |
This doesn't exist on all systems, but here's the value used on Unix.
1.7.1