Sylvain Filoni
update gradio client
9ada4bc
raw
history blame contribute delete
480 Bytes
// src/utils/bufferUtils.ts
var encoder = new TextEncoder();
function encodeBuffer(text) {
return encoder.encode(text);
}
function decodeBuffer(buffer, encoding) {
const decoder = new TextDecoder(encoding);
return decoder.decode(buffer);
}
function toArrayBuffer(array) {
return array.buffer.slice(
array.byteOffset,
array.byteOffset + array.byteLength
);
}
export {
encodeBuffer,
decodeBuffer,
toArrayBuffer
};
//# sourceMappingURL=chunk-6HYIRFX2.mjs.map