Table of Contents

TTMSFNCUtils.FormatBytesAsString Method

Formats a byte count using an appropriate size suffix.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

class function FormatBytesAsString(ASize: Extended): String;

Parameters

Name Description
ASize Byte count to format.

Returns

Readable size string using Bytes, KB, MB, GB, or TB, or an empty string when ASize is negative.