mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-29 22:21:05 +00:00
1 line
3.7 KiB
Plaintext
1 line
3.7 KiB
Plaintext
{"dependencies":[{"name":"../u8a/eq.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":16,"index":120},"end":{"line":4,"column":39,"index":143}}],"key":"OmM6CbvOWZU4Y32F3tMYZeFvdAc=","exportNames":["*"],"imports":1}},{"name":"./u8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":17,"index":162},"end":{"line":5,"column":36,"index":181}}],"key":"DSv8TXMLYjJA4pNNnZgSQ7jiUn4=","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.isRiscV = isRiscV;\n const eq_js_1 = require(_dependencyMap[0], \"../u8a/eq.js\");\n const u8a_js_1 = require(_dependencyMap[1], \"./u8a.js\");\n const ELF_MAGIC = new Uint8Array([0x7f, 0x45, 0x4c, 0x46]); // ELF magic bytes: 0x7f, 'E', 'L', 'F'\n const PVM_MAGIC = new Uint8Array([0x50, 0x56, 0x4d, 0x00]); // 'P', 'V', 'M', 0x00\n /**\n * @name isRiscV\n * @summary Tests if the input has a RISC-V header\n * @description\n * Checks to see if the input Uint8Array contains a valid RISC-V header\n */\n function isRiscV(bytes) {\n if ((0, u8a_js_1.isU8a)(bytes)) {\n const start = bytes.subarray(0, 4);\n return (0, eq_js_1.u8aEq)(start, PVM_MAGIC) || (0, eq_js_1.u8aEq)(start, ELF_MAGIC);\n }\n return false;\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,"isRiscV"],[7,17,3,15],[7,20,3,18,"isRiscV"],[7,27,3,25],[8,2,4,0],[8,8,4,6,"eq_js_1"],[8,15,4,13],[8,18,4,16,"require"],[8,25,4,23],[8,26,4,23,"_dependencyMap"],[8,40,4,23],[8,59,4,38],[8,60,4,39],[9,2,5,0],[9,8,5,6,"u8a_js_1"],[9,16,5,14],[9,19,5,17,"require"],[9,26,5,24],[9,27,5,24,"_dependencyMap"],[9,41,5,24],[9,56,5,35],[9,57,5,36],[10,2,6,0],[10,8,6,6,"ELF_MAGIC"],[10,17,6,15],[10,20,6,18],[10,24,6,22,"Uint8Array"],[10,34,6,32],[10,35,6,33],[10,36,6,34],[10,40,6,38],[10,42,6,40],[10,46,6,44],[10,48,6,46],[10,52,6,50],[10,54,6,52],[10,58,6,56],[10,59,6,57],[10,60,6,58],[10,61,6,59],[10,62,6,60],[11,2,7,0],[11,8,7,6,"PVM_MAGIC"],[11,17,7,15],[11,20,7,18],[11,24,7,22,"Uint8Array"],[11,34,7,32],[11,35,7,33],[11,36,7,34],[11,40,7,38],[11,42,7,40],[11,46,7,44],[11,48,7,46],[11,52,7,50],[11,54,7,52],[11,58,7,56],[11,59,7,57],[11,60,7,58],[11,61,7,59],[11,62,7,60],[12,2,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,2,14,0],[18,11,14,9,"isRiscV"],[18,18,14,16,"isRiscV"],[18,19,14,17,"bytes"],[18,24,14,22],[18,26,14,24],[19,4,15,4],[19,8,15,8],[19,9,15,9],[19,10,15,10],[19,12,15,12,"u8a_js_1"],[19,20,15,20],[19,21,15,21,"isU8a"],[19,26,15,26],[19,28,15,28,"bytes"],[19,33,15,33],[19,34,15,34],[19,36,15,36],[20,6,16,8],[20,12,16,14,"start"],[20,17,16,19],[20,20,16,22,"bytes"],[20,25,16,27],[20,26,16,28,"subarray"],[20,34,16,36],[20,35,16,37],[20,36,16,38],[20,38,16,40],[20,39,16,41],[20,40,16,42],[21,6,17,8],[21,13,17,15],[21,14,17,16],[21,15,17,17],[21,17,17,19,"eq_js_1"],[21,24,17,26],[21,25,17,27,"u8aEq"],[21,30,17,32],[21,32,17,34,"start"],[21,37,17,39],[21,39,17,41,"PVM_MAGIC"],[21,48,17,50],[21,49,17,51],[21,53,17,55],[21,54,17,56],[21,55,17,57],[21,57,17,59,"eq_js_1"],[21,64,17,66],[21,65,17,67,"u8aEq"],[21,70,17,72],[21,72,17,74,"start"],[21,77,17,79],[21,79,17,81,"ELF_MAGIC"],[21,88,17,90],[21,89,17,91],[22,4,18,4],[23,4,19,4],[23,11,19,11],[23,16,19,16],[24,2,20,0],[25,0,20,1],[25,3]],"functionMap":{"names":["<global>","isRiscV"],"mappings":"AAA;ACa;CDM"},"hasCjsExports":true},"type":"js/module"}]} |