memory_to_bytes#
- controller.units.memory_to_bytes(memory)#
Convert a string representatio of memory to a number of bytes.
- Parameters:
memory (
str
) – Amount of memory as a string.- Returns:
Equivalent number of bytes.
- Return type:
- Raises:
ValueError – Raised if the input string is not a valid byte specification.