Table of Contents

Method CanBeEncodedAsRune

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

CanBeEncodedAsRune(byte[])

Reports if the provided array of bytes can be encoded as UTF-8.

public static bool CanBeEncodedAsRune(byte[] buffer)

Parameters

buffer byte[]

The byte array to probe.

Returns

bool

true if is valid; otherwise, false.