#include <savefile.h>
Public Member Functions | |
SavePartMem (uint32 size) | |
bool | read (Common::ReadStream &stream) override |
bool | write (Common::WriteStream &stream) const override |
bool | readFrom (const byte *data, uint32 offset, uint32 size) |
bool | writeInto (byte *data, uint32 offset, uint32 size) const |
Public Member Functions inherited from Gob::SavePart | |
virtual uint32 | getSize () const |
Static Public Attributes | |
static const uint32 | kVersion = 1 |
static const uint32 | kID = MKTAG('P','M','E','M') |
Additional Inherited Members | |
Protected Attributes inherited from Gob::SavePart | |
SaveHeader | _header |
A save part consisting of plain memory.
|
overridevirtual |
Read the part (with header) out of the stream.
Implements Gob::SavePart.
|
overridevirtual |
Write the part (with header) into the stream.
Implements Gob::SavePart.
bool Gob::SavePartMem::readFrom | ( | const byte * | data, |
uint32 | offset, | ||
uint32 | size | ||
) |
Read size bytes of data into the part at the specified offset.
bool Gob::SavePartMem::writeInto | ( | byte * | data, |
uint32 | offset, | ||
uint32 | size | ||
) | const |
Write size bytes of the part at the specified offset int data.