libopenraw
Public Types | Public Member Functions | Public Attributes
OpenRaw::Internals::CIFF::RecordEntry Class Reference

List of all members.

Public Types

typedef std::vector< RecordEntryList

Public Member Functions

bool readFrom (CIFFContainer *container)
size_t fetchData (Heap *heap, void *buf, size_t size) const
bool isA (uint16_t _typeCode) const

Public Attributes

uint16_t typeCode
uint32_t length
uint32_t offset

Detailed Description

Definition at line 141 of file ciffcontainer.h.


Member Function Documentation

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

fetch data define by the record from the heap

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

Definition at line 89 of file ciffcontainer.cpp.

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

Referenced by OpenRaw::Internals::CRWFile::_getRawData().

bool OpenRaw::Internals::CIFF::RecordEntry::isA ( uint16_t  _typeCode) const [inline]

determine if entry match type code

Parameters:
_typeCodethe code to check
Returns:
true if match

Definition at line 164 of file ciffcontainer.h.

Referenced by OpenRaw::Internals::CRWFile::_enumThumbnailSizes(), OpenRaw::Internals::CRWFile::_getRawData(), and OpenRaw::Internals::CRWFile::_getThumbnail().

load record from container

Parameters:
containerthe container
Returns:
true if success

Definition at line 79 of file ciffcontainer.cpp.

References OpenRaw::Internals::RawContainer::readUInt16(), and OpenRaw::Internals::RawContainer::readUInt32().


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