docs.unity3d.com
    Show / Hide Table of Contents

    Method ExpectAliased

    ExpectAliased(Void*, Void*)

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

    Declaration
    public static void ExpectAliased(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.

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

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

    Declaration
    public static void ExpectAliased<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.

    ExpectAliased<B>(Void*, in B)

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

    Declaration
    public static void ExpectAliased<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.

    ExpectAliased<A>(in A, Void*)

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

    Declaration
    public static void ExpectAliased<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