{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct AllocatorManager.Block | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct AllocatorManager.Block

    Represents an individual allocation within an allocator.

    Namespace: Unity.Collections
    Assembly: solution.dll
    Syntax
    public struct AllocatorManager.Block
    Remarks

    A block consists of a Range plus metadata about the type of elements for which the block was allocated.

    Fields

    Name Description
    AllocatedItems

    Number of items allocated for.

    BytesPerItem

    Number of bytes per item.

    Log2Alignment

    Log2 of the byte alignment.

    Padding0

    This field only exists to pad the Block struct. Ignore it.

    Padding1

    This field only exists to pad the Block struct. Ignore it.

    Padding2

    This field only exists to pad the Block struct. Ignore it.

    Range

    The range of memory encompassed by this block.

    Properties

    Name Description
    Alignment

    The alignment.

    AllocatedBytes

    Number of bytes allocated for this block.

    Bytes

    Number of bytes requested for this block.

    Methods

    Name Description
    Allocate()

    Allocates this block.

    Dispose()

    Deallocates this block.

    Free()

    Frees the block.

    TryAllocate()

    Attempts to allocate this block.

    TryFree()

    Attempts to free this block.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)