FUntypedBulkData::CreateStreamingRequestForRange

Create an async read request for a range of bulk data streaming tokens The request will read all data between the two given streaming tokens objects.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Serialization/BulkData.h

Include

#include "Serialization/BulkData.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/Serialization/BulkData.cpp

Syntax

static IBulkDataIORequest * CreateStreamingRequestForRange
(
    const FPackagePath & PackagePath,
    EPackageSegment PackageSegment,
    const BulkDataRangeArray & RangeArray,
    EAsyncIOPriorityAndFlags Priority,
    FBulkDataIORequestCallBack * CompleteCallback
)

Remarks

Create an async read request for a range of bulk data streaming tokens The request will read all data between the two given streaming tokens objects. They must both represent areas of data in the file! There is no way to validate this and it is up to the caller to make sure that it is correct. The memory to be read into will be automatically allocated the size of which can be retrieved by calling IBulkDataIORequest::GetSize()

Returns

A request for the read. This is owned by the caller and must be deleted by the caller.

Parameters

Parameter

Description

PackagePath

The PackagePath to read from.

PackageSegment

The PackageSegment to read from.

Start

The bulk data to start reading from.

End

The bulk data to finish reading from.

Priority

Priority and flags of the request. If this includes AIOP_FLAG_PRECACHE, then memory will never be returned. The request should always be canceled and waited for, even for a precache request.

CompleteCallback

Called from an arbitrary thread when the request is complete. Can be nullptr, if non-null, must remain valid until it is called. It will always be called.