IM: _imBinMemoryFileName Struct Reference

IM - An Imaging Tool

_imBinMemoryFileName Struct Reference
[Binary File Access]


Detailed Description

Fake file name for the memory I/O module.


Data Fields

unsigned char * buffer
int size
float reallocate

Field Documentation

unsigned char* _imBinMemoryFileName::buffer
 

The memory buffer. If you are reading the buffer must exists. If you are writing the buffer can be internally allocated to the given size. The buffer is never free. The buffer is allocated using "malloc", and reallocated using "realloc". Use "free" to release it. To avoid RTL conflicts use the function imBinMemoryRelease.

int _imBinMemoryFileName::size
 

Size of the buffer.

float _imBinMemoryFileName::reallocate
 

Reallocate factor for the memory buffer when writing (size += reallocate*size). Set reallocate to 0 to disable reallozation, in this case buffer must not be NULL.


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