Struct SessionMemoryInfo
public record struct SessionMemoryInfo : IEquatable<SessionMemoryInfo>
- Implements
- Inherited Members
Constructors
SessionMemoryInfo(int, int, int, int, int)
public SessionMemoryInfo(int ReservedSegmentBytes, int AllocatedBytes, int CommittedBytes, int FreeBytes, int LargestFreeBlock)
Parameters
Properties
AllocatedBytes
public int AllocatedBytes { readonly get; set; }
Property Value
AvailableBytes
public readonly int AvailableBytes { get; }
Property Value
CommittedBytes
public int CommittedBytes { readonly get; set; }
Property Value
FreeBytes
public int FreeBytes { readonly get; set; }
Property Value
LargestFreeBlock
public int LargestFreeBlock { readonly get; set; }
Property Value
ReservedSegmentBytes
public int ReservedSegmentBytes { readonly get; set; }
Property Value
UncommittedBytes
public readonly int UncommittedBytes { get; }
Property Value
Methods
WithAllocated(int)
Increments the allocated bytes by the specified amount.
public SessionMemoryInfo WithAllocated(int bytes)
Parameters
bytesintThe number of bytes to be added to the current value.
Returns
- SessionMemoryInfo
A new memory info data structure representing the new value.
WithCommitted(int)
Increments the committed bytes by the specified amount.
public SessionMemoryInfo WithCommitted(int bytes)
Parameters
bytesintThe number of bytes to be added to the current value.
Returns
- SessionMemoryInfo
A new memory info data structure representing the new value.
WithFree(int)
Increments the free bytes by the specified amount.
public SessionMemoryInfo WithFree(int bytes)
Parameters
bytesintThe number of bytes to be added to the current value.
Returns
- SessionMemoryInfo
A new memory info data structure representing the new value.