toBuffer static method
Implementation
static Uint8List toBuffer(String uuidString) {
final buffer = Uint8List(16);
// Remove dashes and convert the hexadecimal string to bytes
final cleanUuidString = uuidString.replaceAll('-', '');
final bytes = hexToBytes(cleanUuidString);
// Copy the bytes into the buffer
for (var i = 0; i < 16; i++) {
buffer[i] = bytes[i];
}
return buffer;
}