(length: number)
| 146 | let buffer = typeof env === 'string' ? encodeUTF8(env) : env; |
| 147 | |
| 148 | function readBinary(length: number): Uint8Array { |
| 149 | const bin = buffer.subarray(0, length); |
| 150 | // Replace the buffer with the remaining data excluding trailing newline |
| 151 | buffer = buffer.subarray(length + 1); |
| 152 | return bin; |
| 153 | } |
| 154 | |
| 155 | function readJson<T>(): T { |
| 156 | let i = buffer.indexOf(0xa); |
no outgoing calls
no test coverage detected