StreamReader::create

Factory method for creation of [Reader](API\Plugins\RigLogicLib\dna\Reader).

Windows
MacOS
Linux

Warnings

  • The maxLOD value must be less than the value returned by getLODCount.

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

References

Module

RigLogicLib

Header

/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/dna/StreamReader.h

Include

#include "dna/StreamReader.h"

Source

/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Private/dna/stream/StreamReaderImpl.cpp

Syntax

static StreamReader * create
(
    BoundedIOStream * stream,
    DataLayer layer,
    std::uint16_t maxLOD,
    MemoryResource * memRes
)

Remarks

The maxLOD value must be less than the value returned by getLODCount.

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

Parameters

Parameter

Description

stream

Source stream from which data is going to be read.

layer

Specify the layer up to which the data needs to be loaded. @note The Definition data layer depends on and thus implicitly loads the Descriptor layer. The Behavior data layer depends on and thus implicitly loads the Definition layer. The Geometry data layer depends on and thus also implicitly loads the Definition layer.

maxLOD

The maximum level of details to be loaded. @note A value of zero indicates to load all LODs.

memRes

Memory resource to be used for allocations. @note If a 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