Class OwnedString
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
textnintThe 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
textnintThe native string handle, which may be null.
Returns
- string
The string, or
nullwhen the call produced none.