class · System.Text

UTF8Encoding

public class System.Text.UTF8Encoding : System.Any
Tipo
class
Espacio de nombres
System.Text
Ensamblado
System.Core
Acceso
public, final
Archivo fuente
Encoding.ant

Herencia

Clases base
Any UTF8Encoding

Métodos

method GetByteCount(text: System.String<u8>) -> i32
#

How many bytes text takes in UTF-8 (a str is UTF-8 already: its length).

method GetBytes(text: System.String<u8>) -> u8[]
#

The bytes of text (a copy: strings do not change).

method GetString(bytes: u8[]) -> System.String<u8>
#
method GetString(bytes: u8[], start: i32, count: i32) -> System.String<u8>
#

The text of count bytes from start (sequences that are not UTF-8 become U+FFFD).

Miembros privados e internos (1)

static method IsValid(bytes: u8[], start: i32, count: i32) -> bool
#

private static

Whether count bytes from start are well-formed UTF-8.

Miembros heredados (5)

Código fuente

UTF8Encoding en Larva HIR, descompilado a partir de su Larva HIR.

System.Text.UTF8Encoding.hir
public class System.Text.UTF8Encoding : System.Any
{
    // Whether `count` bytes from `start` are well-formed UTF-8.
    static method IsValid(bytes: u8[], start: i32, count: i32) -> bool
    // How many bytes `text` takes in UTF-8 (a str is UTF-8 already: its length).
    method GetByteCount(text: System.String<u8>) -> i32
    // The bytes of `text` (a copy: strings do not change).
    method GetBytes(text: System.String<u8>) -> u8[]
    method GetString(bytes: u8[]) -> System.String<u8>
    // The text of `count` bytes from `start` (sequences that are not UTF-8 become U+FFFD).
    method GetString(bytes: u8[], start: i32, count: i32) -> System.String<u8>
}
Esc