OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BinaryMemory Class Reference

#include <binary.h>

Inheritance diagram for BinaryMemory:
[legend]
Collaboration diagram for BinaryMemory:
[legend]

Public Member Functions

 BinaryMemory (const char *d=nullptr, long long max=-1)
 
virtual ~BinaryMemory ()
 
int open (const char *d=nullptr, long long max=-1)
 
virtual long long tell ()
 
virtual void seek (long long pos=0)
 
virtual bool eof ()
 
- Public Member Functions inherited from BinaryReader
virtual ~BinaryReader ()
 
virtual int8_t read8 ()
 
virtual uint8_t readU8 ()
 
virtual int16_t read16 ()
 
virtual uint16_t readU16 ()
 
virtual int32_t read32 ()
 
virtual uint32_t readU32 ()
 
virtual int64_t read64 ()
 
virtual uint64_t readU64 ()
 
virtual float readFloat ()
 

Private Member Functions

virtual void read (char *d, int c)
 

Private Attributes

const char * data
 
long long offset
 
long long max
 

Detailed Description

Definition at line 57 of file binary.h.

Constructor & Destructor Documentation

BinaryMemory::BinaryMemory ( const char *  d = nullptr,
long long  max = -1 
)

Definition at line 146 of file binary.cpp.

BinaryMemory::~BinaryMemory ( )
virtual

Definition at line 150 of file binary.cpp.

Member Function Documentation

int BinaryMemory::open ( const char *  d = nullptr,
long long  max = -1 
)

Definition at line 153 of file binary.cpp.

long long BinaryMemory::tell ( )
virtual

Implements BinaryReader.

Definition at line 166 of file binary.cpp.

void BinaryMemory::seek ( long long  pos = 0)
virtual

Implements BinaryReader.

Definition at line 171 of file binary.cpp.

bool BinaryMemory::eof ( )
virtual

Implements BinaryReader.

Definition at line 176 of file binary.cpp.

void BinaryMemory::read ( char *  d,
int  c 
)
privatevirtual

Implements BinaryReader.

Definition at line 180 of file binary.cpp.

Member Data Documentation

const char* BinaryMemory::data
private

Definition at line 71 of file binary.h.

long long BinaryMemory::offset
private

Definition at line 72 of file binary.h.

long long BinaryMemory::max
private

Definition at line 73 of file binary.h.


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