UNPKG

@ton/core

Version:

Core TypeScript library that implements low level primitives for TON blockchain.

12 lines (11 loc) 274 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.readUnaryLength = void 0; function readUnaryLength(slice) { let res = 0; while (slice.loadBit()) { res++; } return res; } exports.readUnaryLength = readUnaryLength;