Skip to main content
Table of Contents

TTMSFNCUtils.FormatBytesAsString Method

Formats a byte count using an appropriate size suffix.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

FMX.TMSFNCUtils.hppPascalC++
class function FormatBytesAsString(ASize: Extended): String;
__classmethod System::UnicodeString __fastcall FormatBytesAsString(System::Extended ASize);

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.