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
-
AnyUTF8Encoding
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>
#
The text of count bytes from start (sequences that are not UTF-8 become U+FFFD).
Miembros privados e internos (1)
Miembros heredados (5)
GetTypemétodo de AnyUndescribedmétodo de AnyToStringmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
UTF8Encoding en Larva HIR, descompilado a partir de su Larva 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>
}