IFileCacheHandle::CreateFileCacheHandle

Create a [IFileCacheHandle](API\Runtime\Core\FileCache\IFileCacheHandle) from a [IAsyncReadFileHandle](API\Runtime\Core\Async\IAsyncReadFileHandle).

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/FileCache/FileCache.h

Include

#include "FileCache/FileCache.h"

Source

/Engine/Source/Runtime/Core/Private/FileCache/FileCache.cpp

Syntax

static IFileCacheHandle * CreateFileCacheHandle
(
    IAsyncReadFileHandle * FileHandle,
    int64 InBaseOffset
)

Remarks

Returns

A IFileCacheHandle that can be used to make read requests. This will be a nullptr if the FileHandle was not valid.

Parameters

Parameter

Description

FileHandle

A valid IAsyncReadFileHandle that has already been created elsewhere.