Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/cb/2399dc96878b1f97a277cad71986b52325e7f357241e2209781cc4f7cd1f64b75ddb4b
T
2025-10-24 02:46:57 +00:00

1 line
3.3 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.u8aFixLength = u8aFixLength;\n /**\n * @name u8aFixLength\n * @summary Shifts a Uint8Array to a specific bitLength\n * @description\n * Returns a uint8Array with the specified number of bits contained in the return value. (If bitLength is -1, length checking is not done). Values with more bits are trimmed to the specified length.\n * @example\n * <BR>\n *\n * ```javascript\n * import { u8aFixLength } from '@polkadot/util';\n *\n * u8aFixLength('0x12') // => 0x12\n * u8aFixLength('0x12', 16) // => 0x0012\n * u8aFixLength('0x1234', 8) // => 0x12\n * ```\n */\n function u8aFixLength(value, bitLength = -1, atStart = false) {\n const byteLength = Math.ceil(bitLength / 8);\n if (bitLength === -1 || value.length === byteLength) {\n return value;\n } else if (value.length > byteLength) {\n return value.subarray(0, byteLength);\n }\n const result = new Uint8Array(byteLength);\n result.set(value, atStart ? 0 : byteLength - value.length);\n return result;\n }\n});","lineCount":35,"map":[[7,2,17,0,"exports"],[7,9,17,0],[7,10,17,0,"u8aFixLength"],[7,22,17,0],[7,25,17,0,"u8aFixLength"],[7,37,17,0],[8,2,1,0],[9,0,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,0,14,0],[22,0,15,0],[23,0,16,0],[24,2,17,7],[24,11,17,16,"u8aFixLength"],[24,23,17,28,"u8aFixLength"],[24,24,17,29,"value"],[24,29,17,34],[24,31,17,36,"bitLength"],[24,40,17,45],[24,43,17,48],[24,44,17,49],[24,45,17,50],[24,47,17,52,"atStart"],[24,54,17,59],[24,57,17,62],[24,62,17,67],[24,64,17,69],[25,4,18,4],[25,10,18,10,"byteLength"],[25,20,18,20],[25,23,18,23,"Math"],[25,27,18,27],[25,28,18,28,"ceil"],[25,32,18,32],[25,33,18,33,"bitLength"],[25,42,18,42],[25,45,18,45],[25,46,18,46],[25,47,18,47],[26,4,19,4],[26,8,19,8,"bitLength"],[26,17,19,17],[26,22,19,22],[26,23,19,23],[26,24,19,24],[26,28,19,28,"value"],[26,33,19,33],[26,34,19,34,"length"],[26,40,19,40],[26,45,19,45,"byteLength"],[26,55,19,55],[26,57,19,57],[27,6,20,8],[27,13,20,15,"value"],[27,18,20,20],[28,4,21,4],[28,5,21,5],[28,11,22,9],[28,15,22,13,"value"],[28,20,22,18],[28,21,22,19,"length"],[28,27,22,25],[28,30,22,28,"byteLength"],[28,40,22,38],[28,42,22,40],[29,6,23,8],[29,13,23,15,"value"],[29,18,23,20],[29,19,23,21,"subarray"],[29,27,23,29],[29,28,23,30],[29,29,23,31],[29,31,23,33,"byteLength"],[29,41,23,43],[29,42,23,44],[30,4,24,4],[31,4,25,4],[31,10,25,10,"result"],[31,16,25,16],[31,19,25,19],[31,23,25,23,"Uint8Array"],[31,33,25,33],[31,34,25,34,"byteLength"],[31,44,25,44],[31,45,25,45],[32,4,26,4,"result"],[32,10,26,10],[32,11,26,11,"set"],[32,14,26,14],[32,15,26,15,"value"],[32,20,26,20],[32,22,26,22,"atStart"],[32,29,26,29],[32,32,26,32],[32,33,26,33],[32,36,26,37,"byteLength"],[32,46,26,47],[32,49,26,50,"value"],[32,54,26,55],[32,55,26,56,"length"],[32,61,26,63],[32,62,26,64],[33,4,27,4],[33,11,27,11,"result"],[33,17,27,17],[34,2,28,0],[35,0,28,1],[35,3]],"functionMap":{"names":["<global>","u8aFixLength"],"mappings":"AAA;OCgB;CDW"},"hasCjsExports":false},"type":"js/module"}]}