Struct UnsafeScratchAllocator | Collections | 0.6.0-preview.9
docs.unity.cn
    Show / Hide Table of Contents

    Struct UnsafeScratchAllocator

    Namespace: Unity.Collections.LowLevel.Unsafe
    Syntax
    public struct UnsafeScratchAllocator

    Constructors

    UnsafeScratchAllocator(Void*, Int32)

    Declaration
    public UnsafeScratchAllocator(void *pointer, int capacityInBytes)
    Parameters
    Type Name Description
    Void* pointer
    Int32 capacityInBytes

    Methods

    Allocate(Int32, Int32)

    Declaration
    public void *Allocate(int sizeInBytes, int alignmentInBytes)
    Parameters
    Type Name Description
    Int32 sizeInBytes
    Int32 alignmentInBytes
    Returns
    Type Description
    Void*

    Allocate<T>(Int32)

    Declaration
    public void *Allocate<T>(int count = 1)
        where T : struct
    Parameters
    Type Name Description
    Int32 count
    Returns
    Type Description
    Void*
    Type Parameters
    Name Description
    T

    Extension Methods

    JobNativeMultiHashMapVisitKeyValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobNativeMultiHashMapVisitKeyMutableValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobUnsafeMultiHashMapVisitKeyValue.Schedule<TJob, TKey, TValue>(TJob, UnsafeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobUnsafeMultiHashMapVisitKeyMutableValue.Schedule<TJob, TKey, TValue>(TJob, UnsafeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX