silverwolf-x's picture
download
raw
219 Bytes
// Buffer.byteLength polyfill in the Edge runtime, with only utf8 strings
// supported at the moment.
export function byteLength(payload: string): number {
return new TextEncoder().encode(payload).buffer.byteLength
}

Xet Storage Details

Size:
219 Bytes
·
Xet hash:
8c5e13b2b637e196713d57b8357180dcbd5376c15280a63530b9e98830b6c5da

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.