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
-
AnyNativeMemory
Methods
bytes of native memory, zeroed (Free gives it back).
count elements of size bytes, zeroed.
static method Free(block: void*) -> void
#
Copies bytes bytes from source to destination (the blocks do not overlap).
Sets bytes bytes at block to value.
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
NativeMemory as Larva HIR, decompiled from its Larva 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
}