class · System

Resources

public class System.Resources : System.Any
Tipo
class
Espacio de nombres
System
Ensamblado
System.Core
Acceso
public, static, abstract
Archivo fuente
Resources.ant

Herencia

Clases base
Any Resources

Métodos

static method Install(name: System.String<u8>, bytes: u8[]) -> void
#

static

Adds a resource at run time (a later one with the same name replaces it, and hides a built-in one).

static method Has(name: System.String<u8>) -> bool
#

static

Whether the program has resource name.

static method Read(name: System.String<u8>) -> u8[]?
#

static

The bytes of resource name (a copy), or null when there is none.

static method ReadText(name: System.String<u8>) -> System.String<u8>?
#

static

The text (UTF-8) of resource name, or null when there is none.

static method View(name: System.String<u8>) -> System.ResourceData?
#

static

Resource name read in place (no copy), or null when there is none.

static method Names() -> System.String<u8>[]
#

static

The names of every resource: the built-in ones in build order, then the installed ones.

Miembros privados e internos (9)

static field builtIn: System.Dictionary<System.String<u8>, i32>
#

private static

static field installed: System.Dictionary<System.String<u8>, u8[]>
#

private static

static field installedNames: System.List<System.String<u8>>
#

private static

static method Count() -> i32
#

private static

static method NameOf(index: i32) -> u8[]
#

private static

static method BytesOf(index: i32) -> u8[]
#

private static

static method LengthOf(index: i32) -> i32
#

private static

static method DataOf(index: i32) -> u8*
#

private static

static method BuiltIn() -> System.Dictionary<System.String<u8>, i32>
#

private static

Miembros heredados (5)

Código fuente

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

System.Resources.hir
public class System.Resources : System.Any
{
    static field builtIn: System.Dictionary<System.String<u8>, i32>
    static field installed: System.Dictionary<System.String<u8>, u8[]>
    static field installedNames: System.List<System.String<u8>>
    static method Count() -> i32
    static method NameOf(index: i32) -> u8[]
    static method BytesOf(index: i32) -> u8[]
    static method LengthOf(index: i32) -> i32
    static method DataOf(index: i32) -> u8*
    static method BuiltIn() -> System.Dictionary<System.String<u8>, i32>
    // Adds a resource at run time (a later one with the same name replaces it, and hides a built-in one).
    static method Install(name: System.String<u8>, bytes: u8[]) -> void
    // Whether the program has resource `name`.
    static method Has(name: System.String<u8>) -> bool
    // The bytes of resource `name` (a copy), or null when there is none.
    static method Read(name: System.String<u8>) -> u8[]?
    // The text (UTF-8) of resource `name`, or null when there is none.
    static method ReadText(name: System.String<u8>) -> System.String<u8>?
    // Resource `name` read in place (no copy), or null when there is none.
    static method View(name: System.String<u8>) -> System.ResourceData?
    // The names of every resource: the built-in ones in build order, then the installed ones.
    static method Names() -> System.String<u8>[]
}
Esc