class · System.Runtime.InteropServices

NativeMemory

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

Native memory blocks (not seen by the collector).

Kind
class
Namespace
System.Runtime.InteropServices
Assembly
System.Core
Access
public, static, abstract
Source file
Interop.ant

Inheritance

Base classes
Any NativeMemory

Methods

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

Inherited members (5)

Source

NativeMemory as Larva HIR, decompiled from its 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