ScummVM API documentation
Gob::SavePartVars Class Reference

#include <savefile.h>

Inheritance diagram for Gob::SavePartVars:
Gob::SavePart

Public Member Functions

 SavePartVars (GobEngine *vm, uint32 size)
 
bool read (Common::ReadStream &stream) override
 
bool write (Common::WriteStream &stream) const override
 
bool readFrom (uint32 var, uint32 offset, uint32 size)
 
bool writeInto (uint32 var, uint32 offset, uint32 size) const
 
bool readFromRaw (const byte *data, uint32 offset, uint32 size)
 
bool writeIntoRaw (byte *data, uint32 offset, uint32 size) const
 
const byte * data () 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('V','A','R','S')
 

Additional Inherited Members

- Protected Attributes inherited from Gob::SavePart
SaveHeader _header
 

Detailed Description

A save part holding script variables.

Member Function Documentation

◆ read()

bool Gob::SavePartVars::read ( Common::ReadStream stream)
overridevirtual

Read the part (with header) out of the stream.

Implements Gob::SavePart.

◆ write()

bool Gob::SavePartVars::write ( Common::WriteStream stream) const
overridevirtual

Write the part (with header) into the stream.

Implements Gob::SavePart.

◆ readFrom()

bool Gob::SavePartVars::readFrom ( uint32  var,
uint32  offset,
uint32  size 
)

Read size bytes of variables starting at var into the part at the specified offset.

◆ writeInto()

bool Gob::SavePartVars::writeInto ( uint32  var,
uint32  offset,
uint32  size 
) const

Write size bytes of the part at the specified offset into the variable starting at var.

◆ readFromRaw()

bool Gob::SavePartVars::readFromRaw ( const byte *  data,
uint32  offset,
uint32  size 
)

Read size bytes of raw data into the part.

◆ writeIntoRaw()

bool Gob::SavePartVars::writeIntoRaw ( byte *  data,
uint32  offset,
uint32  size 
) const

Write size bytes of the part at the specified offset into a raw buffer.


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