class · System.Runtime.InteropServices

NativeMemory

public class System.Runtime.InteropServices.NativeMemory : System.Any

Native memory blocks (not seen by the collector).

Tipo
class
Espacio de nombres
System.Runtime.InteropServices
Ensamblado
System.Core
Acceso
public, static, abstract
Archivo fuente
Interop.ant

Herencia

Clases base
Any NativeMemory

Métodos

static method Alloc(bytes: u64) -> void*
#

static

bytes of native memory, zeroed (Free gives it back).

static method AllocZeroed(count: u64, size: u64) -> void*
#

static

count elements of size bytes, zeroed.

static method Free(block: void*) -> void
#

static

static method Copy(source: void*, destination: void*, bytes: u64) -> void
#

static

Copies bytes bytes from source to destination (the blocks do not overlap).

static method Fill(block: void*, bytes: u64, value: u8) -> void
#

static

Sets bytes bytes at block to value.

static method Clear(block: void*, bytes: u64) -> void
#

static

Miembros heredados (5)

Código fuente

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

System.Runtime.InteropServices.NativeMemory.hir
// Native memory blocks (not seen by the collector).
public class System.Runtime.InteropServices.NativeMemory : System.Any
{
    // `bytes` of native memory, zeroed (Free gives it back).
    static method Alloc(bytes: u64) -> void*
    // `count` elements of `size` bytes, zeroed.
    static method AllocZeroed(count: u64, size: u64) -> void*
    static method Free(block: void*) -> void
    // Copies `bytes` bytes from `source` to `destination` (the blocks do not overlap).
    static method Copy(source: void*, destination: void*, bytes: u64) -> void
    // Sets `bytes` bytes at `block` to `value`.
    static method Fill(block: void*, bytes: u64, value: u8) -> void
    static method Clear(block: void*, bytes: u64) -> void
}
Esc