sizeToBytes
@quik/core / sizeToBytes
Function: sizeToBytes()
sizeToBytes(
size):number
Defined in: utils/FileSystem.ts:254
Converts a human readable size (e.g. 1MB) to bytes.
Parameters
size
string | number
The size in bytes or as formatted string
Returns
number
Byte size, or 0 when the unit is not recognized.