pixel-data-js 0.37.0 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.prod.cjs
CHANGED
|
@@ -4347,8 +4347,10 @@ function makeReusableImageData() {
|
|
|
4347
4347
|
// src/ImageData/serialization.ts
|
|
4348
4348
|
function base64EncodeArrayBuffer(buffer) {
|
|
4349
4349
|
const uint8 = new Uint8Array(buffer);
|
|
4350
|
-
|
|
4351
|
-
|
|
4350
|
+
let binary = "";
|
|
4351
|
+
for (let i = 0; i < uint8.length; i++) {
|
|
4352
|
+
binary += String.fromCharCode(uint8[i]);
|
|
4353
|
+
}
|
|
4352
4354
|
return btoa(binary);
|
|
4353
4355
|
}
|
|
4354
4356
|
function base64DecodeArrayBuffer(encoded) {
|