Table of Contents

Method Encode

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Encode(Rune, byte[], int, int)

Writes into the destination buffer starting at offset the UTF8 encoded version of the rune.

public static int Encode(this Rune rune, byte[] dest, int start = 0, int count = -1)

Parameters

rune Rune

The rune to encode.

dest byte[]

The destination buffer.

start int

Starting offset to look into.

count int

Number of bytes valid in the buffer, or -1 to make it the length of the buffer.

Returns

int

he number of bytes written into the destination buffer.

Remarks

This is a Terminal.Gui extension method to Rune to support TUI text manipulation.