# cee::ug::VTFxMemoryFile

class `VTFxMemoryFile` : public RefCountedObject

  A VTFx model file existing in memory.

  The VTFx file formats is Envision’s own formats tailored specifically to carry structural mechanics and fluid dynamics data in a very compact form. The VTFxMemoryFile allows you to create a VTFx file without writing it to disk. This allows the program to communicate model data without intermediate storage on physical disk.

  Public Functions

  `VTFxMemoryFile`()

    Constructs an empty memory file.

  `VTFxMemoryFile`(const VTFxMemoryFile &other)

    Constructs a memory file by copying from another memory file.

  VTFxMemoryFile &`operator=`(const VTFxMemoryFile &other)

    Assigns other to this memory file and returns a reference to this memory file.

  void `setFromRawData`(unsigned char data[], size_t dataSizeInBytes)

    Sets the memory file from a chunk of raw data.

  bool `save`(const Str &filename) const

    Saves the memory file to disk using the specified file name.

    Returns true if file was successfully saved.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Desktop or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...