Created
July 12, 2019 02:19
-
-
Save via/3c337cc6d2d5e85713e5379d49795421 to your computer and use it in GitHub Desktop.
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
pub const Console = struct { | |
buf: [1024]u8, | |
outstream: std.io.SliceOutStream, | |
pub fn init() Console { | |
return Console{ | |
.buf = undefined, | |
.outstream = std.io.SliceOutStream(buf[0..]), | |
}; | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment