snapcap
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

ParameterTypeDescription
bytesUint8Array16-byte buffer.

Returns

string

Hyphenated UUID string.

Throws

If bytes.byteLength !== 16.

See

uuidToBytes

On this page