Created
October 30, 2018 09:11
Shared via Pony Playground (https://playground.ponylang.io/?gist=18be3e4c6b091c064de4cb70c9685920)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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