{!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.Range | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct AllocatorManager.Range

    A range of allocated memory.

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

    The name is perhaps misleading: only in combination with a AllocatorManager.Block does a Range have sufficient information to represent the number of bytes in an allocation. The reason Range is its own type that's separate from Block stems from some efficiency concerns in the implementation details. In most cases, a Range is only used in conjunction with an associated Block.

    Fields

    Name Description
    Allocator

    The allocator function used for this range.

    Items

    Number of items allocated in this range.

    Pointer

    Pointer to the start of this range.

    Methods

    Name Description
    Dispose()

    Deallocates the memory represented by this range.

    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)