IFileCacheHandle::CreateFileCacheHandle

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

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
(
    const TCHAR * InFileName,
    int64 InBaseOffset
)

Remarks

Create a IFileCacheHandle from a filename.

Returns

A IFileCacheHandle that can be used to make read requests. This will be a nullptr if the target file can not be accessed for any given reason.

Parameters

Parameter

Description

InFileName

A path to a file.