parse

fun parse(str: String, forceBinarySize: Boolean = false): DataSize(source)

Same as tryParse, but throws an exception if the string is not a valid data size.