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

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 149 of file ciffcontainer.hpp.

Member Typedef Documentation

◆ List

typedef std::vector<RecordEntry> OpenRaw::Internals::CIFF::RecordEntry::List

Definition at line 152 of file ciffcontainer.hpp.

Constructor & Destructor Documentation

◆ RecordEntry()

OpenRaw::Internals::CIFF::RecordEntry::RecordEntry ( )

Definition at line 99 of file ciffcontainer.cpp.

Member Function Documentation

◆ fetchData()

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 125 of file ciffcontainer.cpp.

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

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

◆ isA()

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 172 of file ciffcontainer.hpp.

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

◆ readFrom()

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

load record from container

Parameters
containerthe container
Returns
true if success

Definition at line 104 of file ciffcontainer.cpp.

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

Member Data Documentation

◆ length

uint32_t OpenRaw::Internals::CIFF::RecordEntry::length

Definition at line 179 of file ciffcontainer.hpp.

◆ offset

uint32_t OpenRaw::Internals::CIFF::RecordEntry::offset

Definition at line 180 of file ciffcontainer.hpp.

◆ typeCode

uint16_t OpenRaw::Internals::CIFF::RecordEntry::typeCode

Definition at line 178 of file ciffcontainer.hpp.


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