docs.unity.cn
    Show / Hide Table of Contents

    Class NativeBitArrayUnsafeUtility

    Unsafe helper methods for NativeBitArray.

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

    Methods

    ConvertExistingDataToNativeBitArray(Void*, Int32, AllocatorManager.AllocatorHandle)

    Returns a bit array with content aliasing a buffer.

    Declaration
    public static NativeBitArray ConvertExistingDataToNativeBitArray(void *ptr, int sizeInBytes, AllocatorManager.AllocatorHandle allocator)
    Parameters
    Type Name Description
    Void* ptr

    A buffer.

    Int32 sizeInBytes

    Size of the buffer in bytes. Must be a multiple of 8.

    AllocatorManager.AllocatorHandle allocator

    The allocator that was used to create the buffer.

    Returns
    Type Description
    NativeBitArray

    A bit array with content aliasing a buffer.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, June 14, 2022
    Terms of use