Struct AllocatorManager.Block | Collections | 0.7.1-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Struct AllocatorManager.Block

    A block of memory with a Range and metadata for size in bytes of each item in the block, number of allocated items, and alignment.

    Namespace: Unity.Collections
    Syntax
    public struct Block : IDisposable

    Fields

    AllocatedItems

    Declaration
    public int AllocatedItems
    Field Value
    Type Description
    Int32

    BytesPerItem

    Declaration
    public int BytesPerItem
    Field Value
    Type Description
    Int32

    Log2Alignment

    Declaration
    public byte Log2Alignment
    Field Value
    Type Description
    Byte

    Padding0

    Declaration
    public byte Padding0
    Field Value
    Type Description
    Byte

    Padding1

    Declaration
    public ushort Padding1
    Field Value
    Type Description
    UInt16

    Padding2

    Declaration
    public uint Padding2
    Field Value
    Type Description
    UInt32

    Range

    Declaration
    public AllocatorManager.Range Range
    Field Value
    Type Description
    AllocatorManager.Range

    Properties

    Alignment

    Declaration
    public int Alignment { get; set; }
    Property Value
    Type Description
    Int32

    Bytes

    Declaration
    public long Bytes { get; }
    Property Value
    Type Description
    Int64

    Methods

    Allocate()

    Declaration
    public void Allocate()

    Dispose()

    Declaration
    public void Dispose()

    Free()

    Declaration
    public void Free()

    TryAllocate()

    Declaration
    public int TryAllocate()
    Returns
    Type Description
    Int32

    TryFree()

    Declaration
    public int TryFree()
    Returns
    Type Description
    Int32

    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