Table of Contents

Interface ICanEstimateSize

Namespace
ToSic.Sys.Memory
Assembly
ToSic.Sys.Core.dll

Marks objects which can self-report their size in memory.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public interface ICanEstimateSize

Methods

EstimateSize(ILog?)

Method to implement when an object can self-report it's size.

SizeEstimate EstimateSize(ILog? log = null)

Parameters

log ILog

An optional logger to use for logging during the size estimation.

Returns

SizeEstimate

The estimated size of the object.