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
runeRuneThe rune to encode.
destbyte[]The destination buffer.
startintStarting offset to look into.
countintNumber 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.