FString::Reset

Empties the string, but doesn't change memory allocation, unless the new size is larger than the current string.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/UnrealString.h

Include

#include "Containers/UnrealString.h"

Syntax

void Reset
(
    int32 NewReservedSize
)

Remarks

Empties the string, but doesn't change memory allocation, unless the new size is larger than the current string.

Parameters

Parameter

Description

NewReservedSize

The expected usage size (in characters, not including the terminator) after calling this function.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss