Data Fields

_imBinMemoryFileName Struct Reference
[Binary File Access]

Memory File Filename Parameter Structure. More...

Data Fields

unsigned char * buffer
int size
float reallocate

Detailed Description

Fake file name for the memory I/O module.

Field Documentation

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.

Size of the buffer.

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