Table of Contents

Class MemoryUtils

Utilities for handling native memory.

public static class MemoryUtils
Inheritance
object
MemoryUtils

Methods

ReadAnsiString(nint)

Read an ANSI string from a pointer.

public static string? ReadAnsiString(nint ptr)

Parameters

ptr nint

The pointer to read from.

Returns

string

The string read from the pointer, null if ptr is null.

TryReleaseString(nint)

Tries to release a native string using umoth_free_native_string(nint)

public static void TryReleaseString(nint ptr)

Parameters

ptr nint

The pointer the string to release.