Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::CodeStream Class Reference

#include <CodeStream.h>

Inheritance diagram for gnash::CodeStream:

Public Member Functions

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

§ CodeStream()

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

Member Function Documentation

§ read_as3op()

std::uint8_t gnash::CodeStream::read_as3op ( )

Read an opcode for ActionScript 3.

References data.

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

§ read_S24()

std::int32_t gnash::CodeStream::read_S24 ( )

Read a signed 24 bit interger.

Referenced by gnash::abc::Machine::execute().

§ read_s8()

int8_t gnash::CodeStream::read_s8 ( )

Read a signed 8-bit character.

References data.

Referenced by gnash::abc::Machine::execute().

§ read_u8()

std::uint8_t gnash::CodeStream::read_u8 ( )

Read an unsigned 8-bit character.

References data.

Referenced by gnash::abc::Machine::execute().

§ read_V32()

std::uint32_t gnash::CodeStream::read_V32 ( )

Read a variable length encoded 32 bit unsigned integer.

References data.

Referenced by gnash::abc::Machine::execute(), and skip_V32().

§ seekBy()

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

Change the current position by a relative value.

Referenced by gnash::abc::Machine::execute().

§ seekTo()

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

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

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

§ skip_V32()

void gnash::CodeStream::skip_V32 ( )

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

References read_V32().

Referenced by gnash::abc::Machine::execute().


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