docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InteropHelpers.UTF8StringHandle

    A null-terminated UTF-8 copy of a string, passed directly to a [DllImport] and freed on Dispose.

    Inheritance
    object
    CriticalFinalizerObject
    SafeHandle
    SafeHandleZeroOrMinusOneIsInvalid
    InteropHelpers.UTF8StringHandle
    Implements
    IDisposable
    Inherited Members
    SafeHandleZeroOrMinusOneIsInvalid.IsInvalid
    SafeHandle.handle
    SafeHandle.Close()
    SafeHandle.DangerousAddRef(ref bool)
    SafeHandle.DangerousGetHandle()
    SafeHandle.DangerousRelease()
    SafeHandle.Dispose()
    SafeHandle.Dispose(bool)
    SafeHandle.SetHandle(IntPtr)
    SafeHandle.SetHandleAsInvalid()
    SafeHandle.IsClosed
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Overrides
    SafeHandle.ReleaseHandle()

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)