FPakFile::ReadHashFromPayload

[FPakFile](API\Runtime\PakFile\FPakFile) helper functions shared between the runtime and UnrealPak.exe.

Choose your operating system:

Windows

macOS

Linux

References

Module

PakFile

Header

/Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h

Include

#include "IPlatformFilePak.h"

Syntax

void ReadHashFromPayload
(
    const FPakEntry & PakEntry,
    uint8 * OutBuffer
)

Remarks

Given a FPakEntry from the index, seek to the payload and read the hash of the payload out of the payload entry Warning: Slow function, do not use in performance critical operations

Parameters

Parameter

Description

PakEntry

the FPakEntry from the index, which has the Offset to read to

OutBuffer

a buffer at least sizeof(FPakEntry::Hash) in size, into which the hash will be copied