(value: number)
| 6 | |
| 7 | |
| 8 | function arrayifyInteger(value: number): Array<number> { |
| 9 | const result: Array<number> = []; |
| 10 | while (value) { |
| 11 | result.unshift(value & 0xff); |
| 12 | value >>= 8; |
| 13 | } |
| 14 | return result; |
| 15 | } |
| 16 | |
| 17 | function _encode(object: Array<any> | string | Uint8Array): Array<number> { |
| 18 | if (Array.isArray(object)) { |
no outgoing calls
no test coverage detected
searching dependent graphs…