mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 12:21:01 +00:00
1 line
3.1 KiB
Plaintext
1 line
3.1 KiB
Plaintext
{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.u8aToFloat = u8aToFloat;\n /**\n * @name u8aToFloat\n * @description Converts a Uint8Array value into the float (either 32 or 64-bit)\n * representation.\n */\n function u8aToFloat(value, {\n bitLength = 32,\n isLe = true\n } = {}) {\n if (bitLength !== 32 && bitLength !== 64) {\n throw new Error('Invalid bitLength provided, expected 32 or 64');\n } else if (value.length < bitLength / 8) {\n throw new Error(`Invalid input buffer provided, expected at least ${bitLength / 8} bytes, found ${value.length}`);\n }\n const dv = new DataView(value.buffer, value.byteOffset);\n return bitLength === 32 ? dv.getFloat32(0, isLe) : dv.getFloat64(0, isLe);\n }\n});","lineCount":25,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"u8aToFloat"],[7,20,3,18],[7,23,3,21,"u8aToFloat"],[7,33,3,31],[8,2,4,0],[9,0,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,2,9,0],[13,11,9,9,"u8aToFloat"],[13,21,9,19,"u8aToFloat"],[13,22,9,20,"value"],[13,27,9,25],[13,29,9,27],[14,4,9,29,"bitLength"],[14,13,9,38],[14,16,9,41],[14,18,9,43],[15,4,9,45,"isLe"],[15,8,9,49],[15,11,9,52],[16,2,9,57],[16,3,9,58],[16,6,9,61],[16,7,9,62],[16,8,9,63],[16,10,9,65],[17,4,10,4],[17,8,10,8,"bitLength"],[17,17,10,17],[17,22,10,22],[17,24,10,24],[17,28,10,28,"bitLength"],[17,37,10,37],[17,42,10,42],[17,44,10,44],[17,46,10,46],[18,6,11,8],[18,12,11,14],[18,16,11,18,"Error"],[18,21,11,23],[18,22,11,24],[18,69,11,71],[18,70,11,72],[19,4,12,4],[19,5,12,5],[19,11,13,9],[19,15,13,13,"value"],[19,20,13,18],[19,21,13,19,"length"],[19,27,13,25],[19,30,13,29,"bitLength"],[19,39,13,38],[19,42,13,41],[19,43,13,43],[19,45,13,45],[20,6,14,8],[20,12,14,14],[20,16,14,18,"Error"],[20,21,14,23],[20,22,14,24],[20,74,14,76,"bitLength"],[20,83,14,85],[20,86,14,88],[20,87,14,89],[20,104,14,106,"value"],[20,109,14,111],[20,110,14,112,"length"],[20,116,14,118],[20,118,14,120],[20,119,14,121],[21,4,15,4],[22,4,16,4],[22,10,16,10,"dv"],[22,12,16,12],[22,15,16,15],[22,19,16,19,"DataView"],[22,27,16,27],[22,28,16,28,"value"],[22,33,16,33],[22,34,16,34,"buffer"],[22,40,16,40],[22,42,16,42,"value"],[22,47,16,47],[22,48,16,48,"byteOffset"],[22,58,16,58],[22,59,16,59],[23,4,17,4],[23,11,17,11,"bitLength"],[23,20,17,20],[23,25,17,25],[23,27,17,27],[23,30,18,10,"dv"],[23,32,18,12],[23,33,18,13,"getFloat32"],[23,43,18,23],[23,44,18,24],[23,45,18,25],[23,47,18,27,"isLe"],[23,51,18,31],[23,52,18,32],[23,55,19,10,"dv"],[23,57,19,12],[23,58,19,13,"getFloat64"],[23,68,19,23],[23,69,19,24],[23,70,19,25],[23,72,19,27,"isLe"],[23,76,19,31],[23,77,19,32],[24,2,20,0],[25,0,20,1],[25,3]],"functionMap":{"names":["<global>","u8aToFloat"],"mappings":"AAA;ACQ;CDW"},"hasCjsExports":true},"type":"js/module"}]} |