ScummVM API documentation
Gob::FakeFileHandler Class Reference

#include <savehandler.h>

Inheritance diagram for Gob::FakeFileHandler:
Gob::SaveHandler

Public Member Functions

 FakeFileHandler (GobEngine *vm)
 
int32 getSize () override
 
bool load (int16 dataVar, int32 size, int32 offset) override
 
bool save (int16 dataVar, int32 size, int32 offset) override
 
bool loadToRaw (byte *ptr, int32 size, int32 offset) override
 
bool saveFromRaw (const byte *ptr, int32 size, int32 offset) override
 
bool deleteFile () override
 
- Public Member Functions inherited from Gob::SaveHandler
 SaveHandler (GobEngine *vm)
 

Additional Inherited Members

- Static Public Member Functions inherited from Gob::SaveHandler
static uint32 getVarSize (GobEngine *vm)
 
- Protected Attributes inherited from Gob::SaveHandler
GobEngine_vm
 

Detailed Description

A handler that behaves like a file but keeps the contents in memory.

Member Function Documentation

◆ getSize()

int32 Gob::FakeFileHandler::getSize ( )
overridevirtual

Returns the file's (virtual) size.

Implements Gob::SaveHandler.

◆ load()

bool Gob::FakeFileHandler::load ( int16  dataVar,
int32  size,
int32  offset 
)
overridevirtual

Loads (parts of) the file.

Implements Gob::SaveHandler.

◆ save()

bool Gob::FakeFileHandler::save ( int16  dataVar,
int32  size,
int32  offset 
)
overridevirtual

Saves (parts of) the file.

Implements Gob::SaveHandler.

◆ deleteFile()

bool Gob::FakeFileHandler::deleteFile ( )
overridevirtual

Deletes the file.

Reimplemented from Gob::SaveHandler.


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