#include <IDataSource.h>
Inheritance diagram for IBufferDataSource:
Public Member Functions | |
IBufferDataSource (const void *data, unsigned int len, bool is_text=false, bool delete_data=false) | |
virtual void | load (const void *data, unsigned int len, bool is_text=false, bool delete_data=false) |
virtual | ~IBufferDataSource () |
virtual uint8 | read1 () |
virtual uint16 | read2 () |
virtual uint16 | read2high () |
virtual uint32 | read3 () |
virtual uint32 | read4 () |
virtual uint32 | read4high () |
virtual sint32 | read (void *str, sint32 num_bytes) |
virtual void | seek (uint32 pos) |
virtual void | skip (sint32 delta) |
virtual uint32 | getSize () |
virtual uint32 | getPos () |
virtual bool | eof () |
Protected Member Functions | |
void | ConvertTextBuffer () |
Protected Attributes | |
const uint8 * | buf |
const uint8 * | buf_ptr |
bool | free_buffer |
uint32 | size |
Definition at line 279 of file IDataSource.h.
IBufferDataSource::IBufferDataSource | ( | const void * | data, | |
unsigned int | len, | |||
bool | is_text = false , |
|||
bool | delete_data = false | |||
) | [inline] |
Definition at line 326 of file IDataSource.h.
References buf, buf_ptr, ConvertTextBuffer(), free_buffer, and size.
virtual IBufferDataSource::~IBufferDataSource | ( | ) | [inline, virtual] |
void IBufferDataSource::ConvertTextBuffer | ( | ) | [inline, protected] |
Definition at line 287 of file IDataSource.h.
References buf, buf_ptr, free_buffer, and size.
Referenced by IBufferDataSource(), and load().
virtual bool IBufferDataSource::eof | ( | ) | [inline, virtual] |
virtual uint32 IBufferDataSource::getPos | ( | ) | [inline, virtual] |
virtual uint32 IBufferDataSource::getSize | ( | ) | [inline, virtual] |
virtual void IBufferDataSource::load | ( | const void * | data, | |
unsigned int | len, | |||
bool | is_text = false , |
|||
bool | delete_data = false | |||
) | [inline, virtual] |
Definition at line 336 of file IDataSource.h.
References buf, buf_ptr, ConvertTextBuffer(), free_buffer, and size.
Implements IDataSource.
Definition at line 402 of file IDataSource.h.
References buf, buf_ptr, and size.
Referenced by Shape::LoadGenericFormat().
virtual uint8 IBufferDataSource::read1 | ( | ) | [inline, virtual] |
Implements IDataSource.
Definition at line 356 of file IDataSource.h.
References buf_ptr.
Referenced by Shape::LoadGenericFormat().
virtual uint16 IBufferDataSource::read2 | ( | ) | [inline, virtual] |
virtual uint16 IBufferDataSource::read2high | ( | ) | [inline, virtual] |
virtual uint32 IBufferDataSource::read3 | ( | ) | [inline, virtual] |
virtual uint32 IBufferDataSource::read4 | ( | ) | [inline, virtual] |
virtual uint32 IBufferDataSource::read4high | ( | ) | [inline, virtual] |
virtual void IBufferDataSource::seek | ( | uint32 | pos | ) | [inline, virtual] |
virtual void IBufferDataSource::skip | ( | sint32 | delta | ) | [inline, virtual] |
Implements IDataSource.
Definition at line 416 of file IDataSource.h.
References buf_ptr.
Referenced by ShapeFrame::LoadGenericFormat(), and Shape::LoadGenericFormat().
const uint8* IBufferDataSource::buf [protected] |
Definition at line 282 of file IDataSource.h.
Referenced by ConvertTextBuffer(), eof(), getPos(), IBufferDataSource(), load(), read(), seek(), and ~IBufferDataSource().
const uint8* IBufferDataSource::buf_ptr [protected] |
Definition at line 283 of file IDataSource.h.
Referenced by ConvertTextBuffer(), eof(), getPos(), IBufferDataSource(), load(), read(), read1(), read2(), read2high(), read3(), read4(), read4high(), seek(), skip(), and ~IBufferDataSource().
bool IBufferDataSource::free_buffer [protected] |
Definition at line 284 of file IDataSource.h.
Referenced by ConvertTextBuffer(), IBufferDataSource(), load(), and ~IBufferDataSource().
uint32 IBufferDataSource::size [protected] |
Definition at line 285 of file IDataSource.h.
Referenced by ConvertTextBuffer(), eof(), getSize(), IBufferDataSource(), load(), and read().