Class InteropHelpers.UTF8StringHandle
A null-terminated UTF-8 copy of a string, passed directly to a [DllImport] and freed on Dispose.
Inheritance
InteropHelpers.UTF8StringHandle
Implements
Inherited Members
Namespace: Unity.Steamworks.Interop
Assembly: Unity.Steamworks.Interop.dll
Syntax
public class InteropHelpers.UTF8StringHandle : SafeHandleZeroOrMinusOneIsInvalid, IDisposable
Constructors
UTF8StringHandle(string)
Copies str into unmanaged memory as null-terminated UTF-8.
Declaration
public UTF8StringHandle(string str)
Parameters
| Type | Name | Description |
|---|---|---|
| string | str | The string to copy; null yields a null pointer. |
Methods
ReleaseHandle()
Frees the unmanaged memory this handle owns.
Declaration
protected override bool ReleaseHandle()
Returns
| Type | Description |
|---|---|
| bool | true once the memory has been released. |