memory_to_bytes#

controller.units.memory_to_bytes(memory)#

Convert a string representation of memory to a number of bytes.

Parameters:

memory (Any) – Amount of memory as a string.

Returns:

Equivalent number of bytes.

Return type:

int

Raises:

ValueError – Raised if the input string is not a valid byte specification.