-
Notifications
You must be signed in to change notification settings - Fork 41
feat: add Zig mount example #217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| // prepare writer for json | ||
| var out_buf: [1024]u8 = undefined; | ||
| var out_buf: [4096]u8 = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this merges I'm going to open an issue to need an allocator here instead of fixed sizes on the stack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good 👍
| var enc = std.base64.Base64Encoder.init(std.base64.standard_alphabet_chars, '='); | ||
| var data_len = enc.calcSize(data.len); | ||
| var buf: [128]u8 = undefined; | ||
| var buf: [16384]u8 = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this merges I'm going to open an issue to need an allocator here instead of fixed sizes on the stack.
d19035a to
c4507c0
Compare
Angelmmiguel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
|
||
| // prepare writer for json | ||
| var out_buf: [1024]u8 = undefined; | ||
| var out_buf: [4096]u8 = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good 👍
No description provided.