docs.unity3d.com
    Show / Hide Table of Contents

    Method ExpectNotAliased

    ExpectNotAliased(Void*, Void*)

    Will cause a compiler error in Burst-compiled code if a and b can alias.

    Declaration
    public static void ExpectNotAliased(void *a, void *b)
    Parameters
    Type Name Description
    Void* a

    A pointer to do aliasing checks on.

    Void* b

    A pointer to do aliasing checks on.

    ExpectNotAliased<A, B>(in A, in B)

    Will cause a compiler error in Burst-compiled code if a and b can alias.

    Declaration
    public static void ExpectNotAliased<A, B>(in A a, in B b)
        where A : struct where B : struct
    Parameters
    Type Name Description
    A a

    A reference to do aliasing checks on.

    B b

    A reference to do aliasing checks on.

    Type Parameters
    Name Description
    A

    The type of a.

    B

    The type of b.

    ExpectNotAliased<B>(Void*, in B)

    Will cause a compiler error in Burst-compiled code if a and b can alias.

    Declaration
    public static void ExpectNotAliased<B>(void *a, in B b)
        where B : struct
    Parameters
    Type Name Description
    Void* a

    A pointer to do aliasing checks on.

    B b

    A reference to do aliasing checks on.

    Type Parameters
    Name Description
    B

    The type of b.

    ExpectNotAliased<A>(in A, Void*)

    Will cause a compiler error in Burst-compiled code if a and b can alias.

    Declaration
    public static void ExpectNotAliased<A>(in A a, void *b)
        where A : struct
    Parameters
    Type Name Description
    A a

    A reference to do aliasing checks on.

    Void* b

    A pointer to do aliasing checks on.

    Type Parameters
    Name Description
    A

    The type of a.

    Back to top
    Terms of use
    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