Skip to content

Instantly share code, notes, and snippets.

@ponylang-gist
Created October 30, 2018 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponylang-gist/18be3e4c6b091c064de4cb70c9685920 to your computer and use it in GitHub Desktop.
Save ponylang-gist/18be3e4c6b091c064de4cb70c9685920 to your computer and use it in GitHub Desktop.
use "buffered"
actor Main
new create(env: Env) =>
let reader = Reader
while true do
reader.append(data_from_somewhere)
if reader.u128_available() then
let u: U128 = reader.u128()
// ... more ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment