docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct HeapBlock

    Represents a block of memory that you can use in a HeapAllocator to manage memory.

    Namespace: Unity.Rendering
    Assembly: Unity.Entities.Graphics.dll
    Syntax
    public struct HeapBlock

    Properties

    Empty

    Indicates whether the HeapBlock is empty. This is true if the HeapBlock is empty and false otherwise.

    Declaration
    public bool Empty { get; }
    Property Value
    Type Description
    bool

    Length

    The length of the HeapBlock.

    Declaration
    public ulong Length { get; }
    Property Value
    Type Description
    ulong

    begin

    The beginning of the allocated heap block.

    Declaration
    public ulong begin { get; }
    Property Value
    Type Description
    ulong

    end

    The end of the allocated heap block.

    Declaration
    public ulong end { get; }
    Property Value
    Type Description
    ulong

    Methods

    CompareTo(HeapBlock)

    Declaration
    public int CompareTo(HeapBlock other)
    Parameters
    Type Name Description
    HeapBlock other
    Returns
    Type Description
    int

    Equals(HeapBlock)

    Declaration
    public bool Equals(HeapBlock other)
    Parameters
    Type Name Description
    HeapBlock other
    Returns
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2025 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)