Skip to contents

Parse a string with a size, such as 1g, 1m, 1k, or just 123 (bytes)

Usage

parse_size_to_bytes(s)

Arguments

s

Size as string. If numeric, it is just returned

Value

Size in bytes, as integer