FBufferReaderWithSHA::FBufferReaderWithSHA

We force the base class to NOT free buffer on close, as we will let the SHA task do it if needed

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/SecureHash.h

Include

#include "Misc/SecureHash.h"

Syntax

FBufferReaderWithSHA
(
    void * Data,
    int64 Size,
    bool bInFreeOnClose,
    const TCHAR * SHASourcePathname,
    bool bIsPersistent,
    bool bInIsUnfoundHashAnError
)

Remarks

Constructor

Parameters

Parameter

Description

Data

Buffer to use as the source data to read from

Size

Size of Data

bInFreeOnClose

If true, Data will be FMemory::Free'd when this archive is closed

SHASourcePathname

Path to the file to use to lookup the SHA hash value

bIsPersistent

Uses this value for SetIsPersistent()

bInIsUnfoundHashAnError

true if failing to lookup the hash should trigger an error (only in ShippingPC)