OpenRaw::Internals::CIFF::RecordEntry Class Reference

List of all members.

Public Types

typedef std::vector< RecordEntryList

Public Member Functions

 RecordEntry ()
bool readFrom (CIFFContainer *container)
size_t fetchData (Heap *heap, void *buf, size_t size)

Public Attributes

uint16_t typeCode
uint32_t length
uint32_t offset

Detailed Description

Definition at line 110 of file ciffcontainer.h.


Member Function Documentation

size_t OpenRaw::Internals::CIFF::RecordEntry::fetchData ( Heap heap,
void *  buf,
size_t  size 
)

fetch data define by the record from the heap

Parameters:
heap the heap to load from
buf the allocated buffer to load into
size the size of the allocated buffer
Returns:
the size actually fetched. MIN(size, this->length);

Definition at line 54 of file ciffcontainer.cpp.

References OpenRaw::Internals::CIFF::Heap::container(), OpenRaw::Internals::RawContainer::fetchData(), OpenRaw::Internals::CIFF::Heap::offset(), and offset.

bool OpenRaw::Internals::CIFF::RecordEntry::readFrom ( CIFFContainer container  ) 

load record from container

Parameters:
container the container
Returns:
true if success

Definition at line 44 of file ciffcontainer.cpp.

References OpenRaw::Internals::RawContainer::file(), length, offset, OpenRaw::Internals::RawContainer::readUInt16(), OpenRaw::Internals::RawContainer::readUInt32(), and typeCode.


The documentation for this class was generated from the following files:
Generated on Sat Jan 27 11:36:14 2007 for libopenraw by  doxygen 1.4.7