libopenraw
Public Types | Public Member Functions | Public Attributes | List of all members
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 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().


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