docs.unity3d.com
    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
    Syntax
    public struct HeapBlock : IComparable<HeapBlock>, IEquatable<HeapBlock>

    Properties

    begin

    The beginning of the allocated heap block.

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

    Empty

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

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

    end

    The end of the allocated heap block.

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

    Length

    The length of the HeapBlock.

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

    Methods

    CompareTo(HeapBlock)

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

    Equals(HeapBlock)

    Declaration
    public bool Equals(HeapBlock other)
    Parameters
    Type Name Description
    HeapBlock other
    Returns
    Type Description
    Boolean
    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