Struct UnsafeScratchAllocator | Collections | 0.6.0-preview.9
docs.unity3d.com
    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 © 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