#include <c4d_memoryfilestruct.h>
This class is used with Filename::SetMemoryWriteMode() to be able to make a BaseFile write to a memory buffer instead of a file.
◆ MemoryFileStruct()
◆ ~MemoryFileStruct()
◆ GetBlockCount()
Gets the number of memory blocks.
- Returns
- The number of memory blocks.
◆ GetBlock()
Gets the memory block specified by index.
- Parameters
-
[in] | index | The memory block index. Must be 0 <= index < GetBlockCount(). |
[in] | mem | Assigned the pointer to the memory block. |
[in] | size | Assigned the size of the memory block. |
- Returns
- true if the memory block was successfully accessed, otherwise false.
◆ GetSingleBlock()
Bool GetSingleBlock |
( |
void *& |
mem, |
|
|
Int & |
size |
|
) |
| |
Gets a single memory block.
- Parameters
-
[in] | mem | Assigned the pointer to the single memory block. |
[in] | size | Assigned the size of the single memory block. |
- Returns
- true if the single memory block was successfully accessed, otherwise false.
◆ WriteBytes()
Bool WriteBytes |
( |
const void * |
src, |
|
|
Int |
cnt |
|
) |
| |
Writes a number of bytes to the structure.
- Parameters
-
[in] | src | Pointer to the buffer to write. The caller owns the pointed buffer. |
[in] | cnt | The number of bytes to write. Must not exceed the size of the buffer. |
- Returns
- true if the bytes were successfully written, otherwise false.
◆ Free()
◆ BaseFile
◆ Filename
◆ HyperFile
◆ t_memmode
◆ t_size
◆ t_mem
◆ t_write