Struct UnsafeScratchAllocator | Package Manager UI website
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
    System.Void* pointer
    System.Int32 capacityInBytes

    Methods

    Allocate(Int32, Int32)

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

    Allocate<T>(Int32)

    Declaration
    public void *Allocate<T>(int count = 1)
        where T : struct
    Parameters
    Type Name Description
    System.Int32 count
    Returns
    Type Description
    System.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)
    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