Gnash
0.8.10
|
#include <CodeStream.h>
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 () |
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
gnash::CodeStream::CodeStream | ( | std::string | data | ) | [inline] |
boost::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().
boost::int32_t gnash::CodeStream::read_S24 | ( | ) |
Read a signed 24 bit interger.
Referenced by gnash::abc::Machine::execute().
int8_t gnash::CodeStream::read_s8 | ( | ) |
boost::uint8_t gnash::CodeStream::read_u8 | ( | ) |
boost::uint32_t gnash::CodeStream::read_V32 | ( | ) |
Read a variable length encoded 32 bit unsigned integer.
References data.
Referenced by skip_V32(), and gnash::abc::Machine::execute().
void gnash::CodeStream::seekBy | ( | int | change | ) |
Change the current position by a relative value.
Referenced by gnash::abc::Machine::execute().
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().
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().