Public Member Functions

gnash::CodeStream Class Reference

#include <CodeStream.h>

List of all members.

Public Member Functions

 CodeStream (std::string data)
boost::uint32_t read_V32 ()
 Read a variable length encoded 32 bit unsigned integer.
boost::uint8_t read_as3op ()
 Read an opcode for ActionScript 3.
void seekBy (int change)
 Change the current position by a relative value.
void seekTo (unsigned int set)
 Set the current position to an absolute value (relative to the start).
boost::int32_t read_S24 ()
 Read a signed 24 bit interger.
int8_t read_s8 ()
 Read a signed 8-bit character.
boost::uint8_t read_u8 ()
 Read an unsigned 8-bit character.
void skip_V32 ()

Detailed Description

A checked read DisplayObject array

CodeStream provides a safe interface to read various things from a DisplayObject array of known size. Any attempt to access memory outside of the given array will throw an exception of type CodeStreamException


Constructor & Destructor Documentation

gnash::CodeStream::CodeStream ( std::string  data  )  [inline]

Member Function Documentation

boost::uint8_t gnash::CodeStream::read_as3op (  ) 

Read an opcode for ActionScript 3.

References data.

Referenced by main(), and gnash::abc::Method::print_body().

boost::int32_t gnash::CodeStream::read_S24 (  ) 

Read a signed 24 bit interger.

Referenced by main().

int8_t gnash::CodeStream::read_s8 (  ) 

Read a signed 8-bit character.

References data.

boost::uint8_t gnash::CodeStream::read_u8 (  ) 

Read an unsigned 8-bit character.

References data.

Referenced by main().

boost::uint32_t gnash::CodeStream::read_V32 (  ) 

Read a variable length encoded 32 bit unsigned integer.

References data.

Referenced by skip_V32().

void gnash::CodeStream::seekBy ( int  change  ) 

Change the current position by a relative value.

void gnash::CodeStream::seekTo ( unsigned int  set  ) 

Set the current position to an absolute value (relative to the start).

Referenced by main(), and gnash::abc::Method::print_body().

void gnash::CodeStream::skip_V32 (  ) 

Same as read_V32(), but doesn't bother with the arithmetic for calculating the value.

References read_V32().


The documentation for this class was generated from the following files: