API ReferenceFunctions
bytesToUuid
Function: bytesToUuid()
function bytesToUuid(bytes: Uint8Array): string;Defined in: api/_helpers.ts:73
Inverse of uuidToBytes: 16-byte buffer → hyphenated UUID string.
Parameters
| Parameter | Type | Description |
|---|---|---|
bytes | Uint8Array | 16-byte buffer. |
Returns
string
Hyphenated UUID string.
Throws
If bytes.byteLength !== 16.