Table of Contents

Class OwnedString

Namespace
Pamoja.Native.Interop
Assembly
Pamoja.Native.dll

Reads and releases the owned strings the C ABI produces.

public static class OwnedString
Inheritance
OwnedString
Inherited Members

Methods

Read(nint)

Copies an owned string out and releases it.

public static string Read(nint text)

Parameters

text nint

The native string handle.

Returns

string

The string.

Exceptions

PamojaException

The native call produced no string.

ReadOrNull(nint)

Copies an owned string out and releases it, allowing none.

public static string? ReadOrNull(nint text)

Parameters

text nint

The native string handle, which may be null.

Returns

string

The string, or null when the call produced none.