FilesSizeConvert Method
Converts the length in bytes into the indicated unit based on the exponent (1 - KB, 2 - MB, 3 - GB, ...).
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static double SizeConvert(
long size,
byte exp
)
Public Shared Function SizeConvert (
size As Long,
exp As Byte
) As Double
- size Int64
- The size of the file in bytes.
- exp Byte
- The exponent to determine the unit conversion.
DoubleDouble with the length in bytes into the indicated unit.