(fields: Iterator<string>)
| 44 | * instead of Python's type objects. |
| 45 | */ |
| 46 | export function decodeStr(fields: Iterator<string>): string { |
| 47 | const r = fields.next() |
| 48 | if (r.done) throw new BadMessage('no more fields') |
| 49 | return r.value |
| 50 | } |
| 51 | |
| 52 | export function decodeInt(fields: Iterator<string>, showUnset = false): number { |
| 53 | const r = fields.next() |
no test coverage detected