Method Encode
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
RuneThe rune to encode.
dest
byte[]The destination buffer.
start
intStarting offset to look into.
count
intNumber 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.