FileStream::create

Factory method for creation of a [FileStream](API\Plugins\RigLogicLib\trio\streams\FileStream) instance.

Windows
MacOS
Linux

Warnings

  • User is responsible for releasing the returned pointer by calling destroy.

References

Module

RigLogicLib

Header

/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/trio/streams/FileStream.h

Include

#include "trio/streams/FileStream.h"

Source

/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Private/trio/streams/FileStreamImpl.cpp

Syntax

static FileStream * create
(
    const char * path,
    AccessMode accessMode,
    OpenMode openMode,
    MemoryResource * memRes
)

Remarks

User is responsible for releasing the returned pointer by calling destroy.

Parameters

Parameter

Description

path

UTF-8 encoded path to file to be opened.

accessMode

Control whether the file is opened for reading or writing.

openMode

Control whether the file is opened in binary or textual mode.

memRes

The memory resource to be used for the allocation of the FileStream instance. @note If a custom memory resource is not given, a default allocation mechanism will be used.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss