Navigation
API > API/Plugins > API/Plugins/RigLogicLib > API/Plugins/RigLogicLib/MemoryMappedFileStream
Warnings * User is responsible for releasing the returned pointer by calling destroy.
Description
If a custom memory resource is not given, a default allocation mechanism will be used.
User is responsible for releasing the returned pointer by calling destroy.
| Name | create |
| Type | function |
| Header File | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/trio/streams/MemoryMappedFileStream.h |
| Include Path | #include "trio/streams/MemoryMappedFileStream.h" |
| Source | /Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Private/trio/streams/MemoryMappedFileStream.cpp |
static MemoryMappedFileStream * create
(
const char * path,
AccessMode accessMode,
MemoryResource * memRes
)
Parameters
| Name | Remarks |
|---|---|
| path | UTF-8 encoded path to file to be opened. |
| accessMode | Control whether the file is opened for reading or writing. |
| memRes | The memory resource to be used for the allocation of the MemoryMappedFileStream instance. |
See Also
- destroy