Beta
The UUID string to convert.
The ArrayBuffer representation.
it('should convert a UUID string to ArrayBuffer', () => {
const uuid = '550e8400-e29b-41d4-a716-446655440000';
const result = uuidToArrayBuffer(uuid);
deepEqual(new Uint8Array(result), new Uint8Array([
0x55, 0x0e, 0x84, 0x00, 0xe2, 0x9b, 0x41, 0xd4,
0xa7, 0x16, 0x44, 0x66, 0x55, 0x44, 0x00, 0x00,
]));
});
Converts a UUID string to an ArrayBuffer.