# Netstring Stream Read length-prefixed binary messages across arbitrary input boundaries with a caller-supplied payload limit. Start with `netstring_start()`. Feed bytes and a fixed maximum frame size to `netstring_step(state, byte, limit)`. Slot 2 gives the event: 0 for header, 1 for a payload byte, 2 for a completed frame, and −1 for malformed input. Commit received data only at event 2. After an error reset explicitly. The largest supported limit is 1 GiB. Call `netstring_complete(state)` at EOF. ## Try it ```sh nest demo netstring_stream@0.1.0 blyxc native-run netstring_stream-demo/main.blyx ``` Run `blyxc native-run checks.blyx` in the source checkout and compare with `checks-expected.txt`. [Package files](https://nest.blyx-lang.space/releases/netstring_stream/0.1.0.html) · [Blyx Discord](https://discord.gg/ZPNWqNsvC) · [Rahul Chaube](https://github.com/Rahulchaube1) · [Sponsor](https://github.com/sponsors/Rahulchaube1)