Class UnsafeUtilityEx | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class UnsafeUtilityEx

    Inheritance
    System.Object
    UnsafeUtilityEx
    Namespace: Unity.Collections.LowLevel.Unsafe
    Syntax
    public static class UnsafeUtilityEx

    Methods

    ArrayElementAsRef<T>(Void*, Int32)

    Declaration
    public static T ArrayElementAsRef<T>(void *ptr, int index)
        where T : struct
    Parameters
    Type Name Description
    System.Void* ptr
    System.Int32 index
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    AsRef<T>(Void*)

    Declaration
    public static T AsRef<T>(void *ptr)
        where T : struct
    Parameters
    Type Name Description
    System.Void* ptr
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    IsUnmanaged<T>()

    Declaration
    public static bool IsUnmanaged<T>()
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    MemSet(Void*, Byte, Int32)

    Declaration
    public static void MemSet(void *destination, byte value, int count)
    Parameters
    Type Name Description
    System.Void* destination
    System.Byte value
    System.Int32 count

    RestrictNoAlias(Void*)

    Declaration
    public static void *RestrictNoAlias(void *ptr)
    Parameters
    Type Name Description
    System.Void* ptr
    Returns
    Type Description
    System.Void*
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023