#include <ODataSource.h>
Inheritance diagram for OAutoBufferDataSource:
Public Member Functions | |
OAutoBufferDataSource (uint32 initial_len) | |
const uint8 * | getBuf () |
virtual | ~OAutoBufferDataSource () |
virtual void | write1 (uint32 val) |
virtual void | write2 (uint16 val) |
virtual void | write2high (uint16 val) |
virtual void | write3 (uint32 val) |
virtual void | write4 (uint32 val) |
virtual void | write4high (uint32 val) |
virtual void | write (const void *b, uint32 len) |
virtual void | seek (uint32 pos) |
virtual void | skip (sint32 pos) |
virtual uint32 | getSize () |
virtual uint32 | getPos () |
virtual void | clear () |
Protected Member Functions | |
void | checkResize (uint32 num_bytes) |
Protected Attributes | |
uint8 * | buf |
uint8 * | buf_ptr |
uint32 | size |
uint32 | loc |
uint32 | allocated |
Definition at line 304 of file ODataSource.h.
OAutoBufferDataSource::OAutoBufferDataSource | ( | uint32 | initial_len | ) | [inline] |
virtual OAutoBufferDataSource::~OAutoBufferDataSource | ( | ) | [inline, virtual] |
void OAutoBufferDataSource::checkResize | ( | uint32 | num_bytes | ) | [inline, protected] |
Definition at line 313 of file ODataSource.h.
References allocated, buf, buf_ptr, loc, and size.
Referenced by write(), write1(), write2(), write2high(), write3(), write4(), and write4high().
virtual void OAutoBufferDataSource::clear | ( | ) | [inline, virtual] |
Definition at line 447 of file ODataSource.h.
References buf, buf_ptr, loc, and size.
Referenced by ConvertShapeFrame::ReadCmpFrame().
const uint8* OAutoBufferDataSource::getBuf | ( | ) | [inline] |
Get a pointer to the data buffer.
Definition at line 355 of file ODataSource.h.
References buf.
Referenced by ConvertShapeFrame::ReadCmpFrame(), and SavegameWriter::writeFile().
virtual uint32 OAutoBufferDataSource::getPos | ( | ) | [inline, virtual] |
Implements ODataSource.
Definition at line 444 of file ODataSource.h.
Referenced by ConvertShapeFrame::ReadCmpFrame().
virtual uint32 OAutoBufferDataSource::getSize | ( | ) | [inline, virtual] |
Implements ODataSource.
Definition at line 442 of file ODataSource.h.
References size.
Referenced by SavegameWriter::writeFile().
virtual void OAutoBufferDataSource::seek | ( | uint32 | pos | ) | [inline, virtual] |
virtual void OAutoBufferDataSource::skip | ( | sint32 | pos | ) | [inline, virtual] |
Implements ODataSource.
Definition at line 424 of file ODataSource.h.
References buf, buf_ptr, loc, and size.
Referenced by ConvertShapeFrame::ReadCmpFrame().
virtual void OAutoBufferDataSource::write | ( | const void * | b, | |
uint32 | len | |||
) | [inline, virtual] |
Implements ODataSource.
Definition at line 408 of file ODataSource.h.
References buf_ptr, and checkResize().
Referenced by ConvertShapeFrame::ReadCmpFrame().
virtual void OAutoBufferDataSource::write1 | ( | uint32 | val | ) | [inline, virtual] |
Implements ODataSource.
Definition at line 362 of file ODataSource.h.
References buf_ptr, and checkResize().
Referenced by ConvertShapeFrame::ReadCmpFrame().
virtual void OAutoBufferDataSource::write2 | ( | uint16 | val | ) | [inline, virtual] |
Implements ODataSource.
Definition at line 368 of file ODataSource.h.
References buf_ptr, and checkResize().
virtual void OAutoBufferDataSource::write2high | ( | uint16 | val | ) | [inline, virtual] |
Implements ODataSource.
Definition at line 375 of file ODataSource.h.
References buf_ptr, and checkResize().
virtual void OAutoBufferDataSource::write3 | ( | uint32 | val | ) | [inline, virtual] |
Implements ODataSource.
Definition at line 382 of file ODataSource.h.
References buf_ptr, and checkResize().
virtual void OAutoBufferDataSource::write4 | ( | uint32 | val | ) | [inline, virtual] |
Implements ODataSource.
Definition at line 390 of file ODataSource.h.
References buf_ptr, and checkResize().
virtual void OAutoBufferDataSource::write4high | ( | uint32 | val | ) | [inline, virtual] |
Implements ODataSource.
Definition at line 399 of file ODataSource.h.
References buf_ptr, and checkResize().
uint32 OAutoBufferDataSource::allocated [protected] |
Definition at line 311 of file ODataSource.h.
Referenced by checkResize(), and OAutoBufferDataSource().
uint8* OAutoBufferDataSource::buf [protected] |
Definition at line 307 of file ODataSource.h.
Referenced by checkResize(), clear(), getBuf(), getPos(), OAutoBufferDataSource(), seek(), and skip().
uint8* OAutoBufferDataSource::buf_ptr [protected] |
Definition at line 308 of file ODataSource.h.
Referenced by checkResize(), clear(), getPos(), OAutoBufferDataSource(), seek(), skip(), write(), write1(), write2(), write2high(), write3(), write4(), write4high(), and ~OAutoBufferDataSource().
uint32 OAutoBufferDataSource::loc [protected] |
Definition at line 310 of file ODataSource.h.
Referenced by checkResize(), clear(), OAutoBufferDataSource(), seek(), and skip().
uint32 OAutoBufferDataSource::size [protected] |
Definition at line 309 of file ODataSource.h.
Referenced by checkResize(), clear(), getSize(), OAutoBufferDataSource(), seek(), and skip().