mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 13:31:00 +00:00
1 line
2.6 KiB
Plaintext
1 line
2.6 KiB
Plaintext
{"dependencies":[{"name":"./fromU8a.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}}],"key":"iUkI7q+RA3L90x8A4JweQCfPTok=","exportNames":["*"],"imports":1}}],"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.compactStripLength = compactStripLength;\n var _fromU8aJs = require(_dependencyMap[0], \"./fromU8a.js\");\n /**\n * @name compactStripLength\n * @description Removes the length prefix, returning both the total length (including the value + compact encoding) and the decoded value with the correct length\n * @example\n * <BR>\n *\n * ```javascript\n * import { compactStripLength } from '@polkadot/util';\n *\n * console.log(compactStripLength(new Uint8Array([2 << 2, 0xde, 0xad]))); // [2, Uint8Array[0xde, 0xad]]\n * ```\n */\n function compactStripLength(input) {\n const [offset, length] = (0, _fromU8aJs.compactFromU8a)(input);\n const total = offset + length.toNumber();\n return [total, input.subarray(offset, total)];\n }\n});","lineCount":26,"map":[[7,2,14,0,"exports"],[7,9,14,0],[7,10,14,0,"compactStripLength"],[7,28,14,0],[7,31,14,0,"compactStripLength"],[7,49,14,0],[8,2,1,0],[8,6,1,0,"_fromU8aJs"],[8,16,1,0],[8,19,1,0,"require"],[8,26,1,0],[8,27,1,0,"_dependencyMap"],[8,41,1,0],[9,2,2,0],[10,0,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,2,14,7],[21,11,14,16,"compactStripLength"],[21,29,14,34,"compactStripLength"],[21,30,14,35,"input"],[21,35,14,40],[21,37,14,42],[22,4,15,4],[22,10,15,10],[22,11,15,11,"offset"],[22,17,15,17],[22,19,15,19,"length"],[22,25,15,25],[22,26,15,26],[22,29,15,29],[22,33,15,29,"compactFromU8a"],[22,43,15,43],[22,44,15,43,"compactFromU8a"],[22,58,15,43],[22,60,15,44,"input"],[22,65,15,49],[22,66,15,50],[23,4,16,4],[23,10,16,10,"total"],[23,15,16,15],[23,18,16,18,"offset"],[23,24,16,24],[23,27,16,27,"length"],[23,33,16,33],[23,34,16,34,"toNumber"],[23,42,16,42],[23,43,16,43],[23,44,16,44],[24,4,17,4],[24,11,17,11],[24,12,18,8,"total"],[24,17,18,13],[24,19,19,8,"input"],[24,24,19,13],[24,25,19,14,"subarray"],[24,33,19,22],[24,34,19,23,"offset"],[24,40,19,29],[24,42,19,31,"total"],[24,47,19,36],[24,48,19,37],[24,49,20,5],[25,2,21,0],[26,0,21,1],[26,3]],"functionMap":{"names":["<global>","compactStripLength"],"mappings":"AAA;OCa;CDO"},"hasCjsExports":false},"type":"js/module"}]} |