parse static method
Parses the provided uuid
into a list of byte values as a Listbuffer
to write into and
a positional offset
for where to start inputting into the buffer.
Throws FormatException if the UUID is invalid. Optionally you can set
validate
to false to disable validation of the UUID before parsing.
Example parsing a UUID string
var bytes = uuid.parse('797ff043-11eb-11e1-80d6-510998755d10');
// bytes-> [121, 127, 240, 67, 17, 235, 17, 225, 128, 214, 81, 9, 152, 117, 93, 16]
Implementation
static List<int> parse(
String uuid, {
List<int>? buffer,
int offset = 0,
bool validate = true,
ValidationMode validationMode = ValidationMode.strictRFC4122,
}) {
return UuidParsing.parse(uuid,
buffer: buffer,
offset: offset,
validate: validate,
validationMode: validationMode);
}