{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Constructor UnsafeBitArray | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor UnsafeBitArray

    UnsafeBitArray(void*, int, AllocatorHandle)

    Initializes and returns an instance of UnsafeBitArray which aliases an existing buffer.

    Declaration
    public UnsafeBitArray(void* ptr, int sizeInBytes, AllocatorManager.AllocatorHandle allocator = default)
    Parameters
    Type Name Description
    void* ptr

    An existing buffer.

    int sizeInBytes

    The number of bytes. The length will be sizeInBytes * 8.

    AllocatorManager.AllocatorHandle allocator

    The allocator that was used to allocate the bytes. Needed to dispose this array.

    UnsafeBitArray(int, AllocatorHandle, NativeArrayOptions)

    Initializes and returns an instance of UnsafeBitArray.

    Declaration
    public UnsafeBitArray(int numBits, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.ClearMemory)
    Parameters
    Type Name Description
    int numBits

    Number of bits.

    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    NativeArrayOptions options

    Whether newly allocated bytes should be zeroed out.

    In This Article
    Back to top
    Copyright © 2023 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)