26 #ifndef EVE_UNMARSHAL_H
27 #define EVE_UNMARSHAL_H
76 const T&
Peek()
const {
return *Peek<T>( 1 ); }
83 const T&
Read() {
return *Read<T>( 1 ); }
89 mInItr = ( res + count ).
template As<uint8>();
96 uint32 size = Read<uint8>();
98 size = Read<uint32>();
PyRep * Load(const Buffer &data)
Loads Python object from given bytecode.
void StoreObject(uint32 index, PyRep *object)
Stores object.
PyRep * LoadStringShort()
PyRep * LoadIntegerMinusOne()
uint32 GetStorageIndex()
Obtains storage index for StoreObject.
Buffer::const_iterator< uint8 > mInItr
Python floating point number.
PyRep * GetStoredObject(uint32 index)
Obtains previously stored object.
PyRep * LoadWStringUCS2Char()
PyRep * LoadIntegerLongLong()
const_iterator< T2 > As() const
Converts const_iterator to another const_iterator with different type.
PyRep * LoadIntegerByte()
PyRep * LoadIntegerZero()
PyRep * LoadStringTable()
PyRep * InflateUnmarshal(const Buffer &data)
Turns possibly inflated marshal stream into Python object.
PyRep * LoadStringEmpty()
Generic class for buffers.
PyRep * LoadIntegerLong()
PyRep * LoadWStringUCS2()
PyRep * LoadIntegerSignedShort()
PyRep * LoadWStringEmpty()
PyRep * LoadSavedStreamElement()
PyRep * LoadChecksumedStream()
Buffer::const_iterator< uint32 > mStoreIndexItr
PyObjectEx * LoadObjectEx(bool is_type_2)
void CreateObjectStore(size_t streamLength, uint32 saveCount)
Initializes object store.
Class which turns marshal bytecode into Python object.
Buffer::const_iterator< T > Peek(size_t count) const
void DestroyObjectStore()
Destroys object store.
PyRep * LoadStream(size_t streamLength)
static PyRep *(UnmarshalStream::*const s_mLoadMap[])()
PyRep * LoadWStringUTF8()
bool LoadRLE(Buffer &out)
PyRep * Unmarshal(const Buffer &data)
Turns marshal stream into Python object.
Buffer::const_iterator< T > Read(size_t count)