Table of Contents

Class SessionMemoryStatus

Namespace
RDCore.SDK.Platform.Protocol
Assembly
RDCore.SDK.dll

A transport-friendly projection of SessionMemoryInfo.

public record SessionMemoryStatus : IEquatable<SessionMemoryStatus>
Inheritance
SessionMemoryStatus
Implements
Inherited Members

Remarks

SessionMemoryInfo itself is a record struct with computed members, which the JSON-RPC serializer would round-trip only by accident; this carries the same numbers as plain properties, computed ones included, so a client renders them without re-deriving anything.

Properties

AllocatedBytes

Bytes currently handed out to live allocations.

public int AllocatedBytes { get; init; }

Property Value

int

AvailableBytes

Reserved bytes not currently handed out — reserved - allocated.

public int AvailableBytes { get; init; }

Property Value

int

CommittedBytes

Bytes backed by committed storage.

public int CommittedBytes { get; init; }

Property Value

int

FreeBytes

Bytes that were allocated and released, and sit on the free lists for reuse.

public int FreeBytes { get; init; }

Property Value

int

LargestFreeBlock

The largest single block the free lists can satisfy without a new segment.

public int LargestFreeBlock { get; init; }

Property Value

int

ReservedBytes

The total address space the session's segments reserve.

public int ReservedBytes { get; init; }

Property Value

int

Methods

From(SessionMemoryInfo)

Projects an allocator's own SessionMemoryInfo onto the wire.

public static SessionMemoryStatus From(SessionMemoryInfo info)

Parameters

info SessionMemoryInfo

The allocation statistics to project.

Returns

SessionMemoryStatus