FManagedStorageFileWriteHandle::Truncate

Truncate the file to the given size (in bytes).

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

IFileHandle::Truncate()

FManagedStorageFileWriteHandle::Truncate()

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/IPlatformFileManagedStorageWrapper.h

Include

#include "HAL/IPlatformFileManagedStorageWrapper.h"

Syntax

virtual bool Truncate
(
    int64 NewSize
)

Remarks

Truncate the file to the given size (in bytes).

Returns

true if the operation completed successfully.

Parameters

Parameter

Description

NewSize

Truncated file size (in bytes).