MKI_ConvertBytesString (Strings) New in Version 2014.0

www.CAD6.com

C++ Syntax

bool

MKI_ConvertBytesString(

 LPWSTR f_pszText,

 __int64 f_nBytes );

 

Converts a byte size to a string.

 

Parameters

Text

[LPWSTR] Text buffer to receive the converted byte string. Allow at least MKI_LENGTH_NAME_SHORT characters! The result will be in the format "32 KiB", "10.2 MiB", "3.2 GiB", or "17.2 TiB", depending on the actual value. A negative value will result in "? KiB".

Bytes

[__int64] Integer byte size to be converted into a string.

 

Return Value

Returns true if successful. If false is returned, Text is unchanged.

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH