Class NativeBitArrayUnsafeUtility | Collections | 0.15.0-preview.21
docs.unity.cn
    Show / Hide Table of Contents

    Class NativeBitArrayUnsafeUtility

    NativeBitArray unsafe utility helpers.

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

    Methods

    ConvertExistingDataToNativeBitArray(Void*, Int32, Allocator)

    Convert existing data to bit array container.

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

    Pointer to data.

    Int32 sizeInBytes

    Size of data in bytes. Must be multiple of 8-bytes.

    Allocator allocator

    A member of the Unity.Collections.Allocator enumeration.

    Returns
    Type Description
    NativeBitArray

    Returns bit array container.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Saturday, January 23, 2021