(value: number)
| 40 | } |
| 41 | |
| 42 | uint(value: number): void { |
| 43 | let n = uint(value); |
| 44 | do { |
| 45 | const byte = n % 128; |
| 46 | n = Math.floor(n / 128); |
| 47 | this.byte(byte + (n ? 128 : 0)); |
| 48 | } while (n); |
| 49 | } |
| 50 | |
| 51 | bytes(value: Uint8Array): void { |
| 52 | this.reserve(value.length); |
no test coverage detected