Struct AllocatorManager.Block | Collections | 0.9.0-preview.6
docs.unity.cn
    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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX