xoreos
0.0.5
|
#include <asbuffer.h>
Public Member Functions | |
ASBuffer (Common::SeekableReadStream *as) | |
void | run (AVM &avm) |
void | setConstantPool (std::vector< Common::UString > constantPool) |
Private Attributes | |
size_t | _currentLength |
ptrdiff_t | _seeked |
std::vector< Common::UString > | _constants |
std::stack< Variable > | _stack |
Common::SeekableReadStream * | _script |
Definition at line 45 of file asbuffer.h.
Aurora::ActionScript::ASBuffer::ASBuffer | ( | Common::SeekableReadStream * | as | ) |
Definition at line 86 of file asbuffer.cpp.
|
private |
Definition at line 329 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 210 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 296 of file asbuffer.cpp.
References debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 436 of file asbuffer.cpp.
References _stack, debugC(), Common::UString::empty(), Aurora::ActionScript::AVM::getRegister(), Aurora::ActionScript::AVM::getVariable(), Aurora::ActionScript::Variable::isUndefined(), Common::kDebugActionScript, Aurora::ActionScript::AVM::setReturnValue(), and Aurora::ActionScript::AVM::storeRegister().
Referenced by execute().
|
private |
Definition at line 555 of file asbuffer.cpp.
References _constants, _script, debugC(), Common::kDebugActionScript, readString(), and Common::ReadStream::readUint16LE().
Referenced by execute().
|
private |
Definition at line 762 of file asbuffer.cpp.
References _constants, _script, _seeked, _stack, Common::UString::c_str(), debugC(), Common::kDebugActionScript, Common::ReadStream::readStream(), readString(), and Common::ReadStream::readUint16LE().
Referenced by execute().
|
private |
Definition at line 566 of file asbuffer.cpp.
References _constants, _script, _seeked, _stack, Common::UString::c_str(), debugC(), Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::getBit(), Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::getBits(), Common::kDebugActionScript, Common::SeekableReadStream::kOriginCurrent, Common::SeekableReadStream::pos(), Common::ReadStream::readByte(), readString(), Common::ReadStream::readUint16LE(), and Common::SeekableReadStream::seek().
Referenced by execute().
|
private |
Definition at line 281 of file asbuffer.cpp.
References _stack, Aurora::ActionScript::Variable::asString(), debugC(), Aurora::ActionScript::Variable::isString(), Common::kDebugActionScript, and Aurora::ActionScript::AVM::setVariable().
Referenced by execute().
|
private |
Definition at line 199 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 497 of file asbuffer.cpp.
References _stack, debugC(), Common::kDebugActionScript, and Aurora::ActionScript::Variable::Null().
Referenced by execute().
|
private |
Definition at line 369 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 516 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 392 of file asbuffer.cpp.
References _stack, Aurora::ActionScript::Variable::asObject(), debugC(), Common::kDebugActionScript, and Common::UString::split().
Referenced by execute().
|
private |
Definition at line 530 of file asbuffer.cpp.
References _stack, Aurora::ActionScript::Variable::asString(), Common::UString::c_str(), debugC(), Aurora::ActionScript::AVM::fsCommand(), Aurora::ActionScript::Variable::isString(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 722 of file asbuffer.cpp.
References _script, _stack, Common::UString::c_str(), debugC(), Aurora::ActionScript::AVM::fsCommand(), Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::getBit(), Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::getBits(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 248 of file asbuffer.cpp.
References _stack, Aurora::ActionScript::Variable::asObject(), debugC(), Aurora::ActionScript::AVM::getVariable(), Common::kDebugActionScript, and Common::UString::split().
Referenced by execute().
|
private |
Definition at line 783 of file asbuffer.cpp.
References _script, _seeked, _stack, Aurora::ActionScript::Variable::asBoolean(), debugC(), Common::kDebugActionScript, Common::SeekableReadStream::kOriginCurrent, Common::ReadStream::readSint16LE(), and Common::SeekableReadStream::seek().
Referenced by execute().
|
private |
Definition at line 427 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 311 of file asbuffer.cpp.
References _stack, Aurora::ActionScript::Variable::asNumber(), debugC(), Aurora::ActionScript::Variable::isNumber(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 713 of file asbuffer.cpp.
References _script, _seeked, debugC(), Common::kDebugActionScript, Common::SeekableReadStream::kOriginCurrent, Common::ReadStream::readSint16LE(), and Common::SeekableReadStream::seek().
Referenced by execute().
|
private |
Definition at line 357 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 188 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 340 of file asbuffer.cpp.
References _stack, Aurora::ActionScript::AVM::createNewObject(), debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 232 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 221 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 241 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 629 of file asbuffer.cpp.
References _constants, _currentLength, _script, _stack, debugC(), Aurora::ActionScript::AVM::getRegister(), Common::kDebugActionScript, Aurora::ActionScript::Variable::Null(), Common::ReadStream::readByte(), Common::ReadStream::readIEEEDoubleLE(), Common::ReadStream::readIEEEFloatLE(), readString(), Common::ReadStream::readUint16LE(), and Common::ReadStream::readUint32LE().
Referenced by execute().
|
private |
Definition at line 386 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 302 of file asbuffer.cpp.
References _stack, debugC(), Common::kDebugActionScript, and Aurora::ActionScript::AVM::setReturnValue().
Referenced by execute().
|
private |
Definition at line 415 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 264 of file asbuffer.cpp.
References _stack, debugC(), Common::kDebugActionScript, and Aurora::ActionScript::AVM::setVariable().
Referenced by execute().
|
private |
Definition at line 167 of file asbuffer.cpp.
References debugC(), Common::kDebugActionScript, and Aurora::ActionScript::AVM::setStopFlag().
Referenced by execute().
|
private |
Definition at line 548 of file asbuffer.cpp.
References _script, _stack, debugC(), Common::kDebugActionScript, Common::ReadStream::readByte(), and Aurora::ActionScript::AVM::storeRegister().
Referenced by execute().
|
private |
Definition at line 177 of file asbuffer.cpp.
References _stack, debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 173 of file asbuffer.cpp.
References debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 380 of file asbuffer.cpp.
References debugC(), and Common::kDebugActionScript.
Referenced by execute().
|
private |
Definition at line 275 of file asbuffer.cpp.
References debugC(), Common::kDebugActionScript, and warning().
Referenced by execute().
|
private |
Definition at line 101 of file asbuffer.cpp.
References _currentLength, _script, _seeked, actionAdd2(), actionAnd(), actionCallFunction(), actionCallMethod(), actionConstantPool(), actionDefineFunction(), actionDefineFunction2(), actionDefineLocal(), actionDivide(), actionEnumerate2(), actionEquals2(), actionExtends(), actionGetMember(), actionGetURL(), actionGetURL2(), actionGetVariable(), actionIf(), actionIncrement(), actionInitArray(), actionJump(), actionLess2(), actionMultiply(), actionNewObject(), actionNot(), actionOr(), actionPop(), actionPush(), actionPushDuplicate(), actionReturn(), actionSetMember(), actionSetVariable(), actionStop(), actionStoreRegister(), actionSubtract(), actionToggleQuality(), actionToNumber2(), actionTrace(), debugC(), Aurora::ActionScript::kActionAdd2, Aurora::ActionScript::kActionAnd, Aurora::ActionScript::kActionCallFunction, Aurora::ActionScript::kActionCallMethod, Aurora::ActionScript::kActionConstantPool, Aurora::ActionScript::kActionDefineFunction, Aurora::ActionScript::kActionDefineFunction2, Aurora::ActionScript::kActionDefineLocal, Aurora::ActionScript::kActionDivide, Aurora::ActionScript::kActionEnumerate2, Aurora::ActionScript::kActionEquals2, Aurora::ActionScript::kActionExtends, Aurora::ActionScript::kActionGetMember, Aurora::ActionScript::kActionGetURL, Aurora::ActionScript::kActionGetURL2, Aurora::ActionScript::kActionGetVariable, Aurora::ActionScript::kActionIf, Aurora::ActionScript::kActionIncrement, Aurora::ActionScript::kActionInitArray, Aurora::ActionScript::kActionJump, Aurora::ActionScript::kActionLess2, Aurora::ActionScript::kActionMultiply, Aurora::ActionScript::kActionNewObject, Aurora::ActionScript::kActionNot, Aurora::ActionScript::kActionOr, Aurora::ActionScript::kActionPop, Aurora::ActionScript::kActionPush, Aurora::ActionScript::kActionPushDuplicate, Aurora::ActionScript::kActionReturn, Aurora::ActionScript::kActionSetMember, Aurora::ActionScript::kActionSetVariable, Aurora::ActionScript::kActionStop, Aurora::ActionScript::kActionStoreRegister, Aurora::ActionScript::kActionSubtract, Aurora::ActionScript::kActionToggleQuality, Aurora::ActionScript::kActionToNumber2, Aurora::ActionScript::kActionTrace, Common::kDebugActionScript, Common::SeekableReadStream::kOriginCurrent, Common::SeekableReadStream::pos(), Common::ReadStream::readByte(), Common::ReadStream::readUint16LE(), Common::SeekableReadStream::seek(), Common::SeekableReadStream::size(), and warning().
Referenced by run().
|
private |
Definition at line 797 of file asbuffer.cpp.
References _script, and Common::ReadStream::readChar().
Referenced by actionConstantPool(), actionDefineFunction(), actionDefineFunction2(), and actionPush().
void Aurora::ActionScript::ASBuffer::run | ( | AVM & | avm | ) |
Definition at line 92 of file asbuffer.cpp.
References _script, execute(), and Common::SeekableReadStream::seek().
Referenced by Aurora::ActionScript::ScriptedFunction::operator()().
void Aurora::ActionScript::ASBuffer::setConstantPool | ( | std::vector< Common::UString > | constantPool | ) |
Definition at line 97 of file asbuffer.cpp.
References _constants.
Referenced by Aurora::ActionScript::ScriptedFunction::ScriptedFunction().
|
private |
Definition at line 101 of file asbuffer.h.
Referenced by actionConstantPool(), actionDefineFunction(), actionDefineFunction2(), actionPush(), and setConstantPool().
|
private |
Definition at line 97 of file asbuffer.h.
Referenced by actionPush(), and execute().
|
private |
Definition at line 107 of file asbuffer.h.
Referenced by actionConstantPool(), actionDefineFunction(), actionDefineFunction2(), actionGetURL2(), actionIf(), actionJump(), actionPush(), actionStoreRegister(), execute(), readString(), and run().
|
private |
Definition at line 98 of file asbuffer.h.
Referenced by actionDefineFunction(), actionDefineFunction2(), actionIf(), actionJump(), and execute().
|
private |
Definition at line 104 of file asbuffer.h.
Referenced by actionAdd2(), actionAnd(), actionCallMethod(), actionDefineFunction(), actionDefineFunction2(), actionDefineLocal(), actionDivide(), actionEnumerate2(), actionEquals2(), actionExtends(), actionGetMember(), actionGetURL(), actionGetURL2(), actionGetVariable(), actionIf(), actionIncrement(), actionInitArray(), actionLess2(), actionMultiply(), actionNewObject(), actionNot(), actionOr(), actionPop(), actionPush(), actionPushDuplicate(), actionReturn(), actionSetMember(), actionSetVariable(), actionStoreRegister(), and actionSubtract().