c4d.storage.MemoryFileStruct

New in version R13.029.

This class is used to write to memory instead of to a file.

See also

MemoryFileStruct.py for an example showing how to write/read to/from a memory file.

Note

The MemoryFileStruct is currently only supported by HyperFile.

class c4d.storage.MemoryFileStruct

Methods

MemoryFileStruct.__init__()
Return type: MemoryFileStruct
Returns: The memory file object.
MemoryFileStruct.SetMemoryReadMode(adr, size)

Sets the buffer read from a memory block instead of from a file.

Parameters:
  • adr (PyCObject or ByteSeq or str) – The memory address to read from.
  • size (long) – The size of the memory block, or -1 if the buffer is “big enough”.
MemoryFileStruct.SetMemoryWriteMode()

Sets the buffer ready to be written to.

MemoryFileStruct.GetData()

Retrieves all data written to the memory file.

Return type: tuple(ByteSeq data, long size)
Returns: A tuple with the buffer data and size.

Table Of Contents