TStringView::CopyString

Copy characters from the view into a destination buffer without null termination.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/StringView.h"

Syntax

int32 CopyString
(
    CharType * Dest,
    int32 CharCount,
    int32 Position
) const

Remarks

Copy characters from the view into a destination buffer without null termination.

Returns

The number of characters written to the destination buffer.

Parameters

Parameter

Description

Dest

Buffer to write into. Must have space for at least CharCount characters.

CharCount

The maximum number of characters to copy.

Position

The offset into the view from which to start copying.