(obj: unknown)
| 24 | } |
| 25 | |
| 26 | function frame(obj: unknown): string { |
| 27 | const json = JSON.stringify(obj); |
| 28 | return `${json.length}#${json}`; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * Decode as many complete `"<len>#<json>"` frames as possible from `raw`, |
no outgoing calls
no test coverage detected