Blender V5.3
blender::IMMapStream Class Reference

Inherits Imf::IStream.

Public Member Functions

 IMMapStream (const char *filepath)
 ~IMMapStream () override
bool read (char c[], int n) override
exr_file_offset_t tellg () override
void seekg (exr_file_offset_t pos) override

Detailed Description

Definition at line 170 of file openexr_api.cpp.

Constructor & Destructor Documentation

◆ IMMapStream()

blender::IMMapStream::IMMapStream ( const char * filepath)
inline

◆ ~IMMapStream()

blender::IMMapStream::~IMMapStream ( )
inlineoverride

Definition at line 187 of file openexr_api.cpp.

References blender::BLI_mmap_free().

Member Function Documentation

◆ read()

bool blender::IMMapStream::read ( char c[],
int n )
inlineoverride

This is implementing regular read, not readMemoryMapped, because DWAA and DWAB decompressors load on unaligned offsets. Therefore we can't avoid the memory copy.

Definition at line 196 of file openexr_api.cpp.

References blender::BLI_mmap_read().

◆ seekg()

void blender::IMMapStream::seekg ( exr_file_offset_t pos)
inlineoverride

Definition at line 216 of file openexr_api.cpp.

References exr_file_offset_t.

◆ tellg()

exr_file_offset_t blender::IMMapStream::tellg ( )
inlineoverride

Definition at line 211 of file openexr_api.cpp.

References exr_file_offset_t.


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