ScummVM API documentation
Gob::SavePartMem Class Reference

#include <savefile.h>

Inheritance diagram for Gob::SavePartMem:
Gob::SavePart

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
 

Detailed Description

A save part consisting of plain memory.

Member Function Documentation

◆ read()

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

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

Implements Gob::SavePart.

◆ write()

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

Write the part (with header) into the stream.

Implements Gob::SavePart.

◆ readFrom()

bool Gob::SavePartMem::readFrom ( const byte *  data,
uint32  offset,
uint32  size 
)

Read size bytes of data into the part at the specified offset.

◆ writeInto()

bool Gob::SavePartMem::writeInto ( byte *  data,
uint32  offset,
uint32  size 
) const

Write size bytes of the part at the specified offset int data.


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