-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat: add Zig mount example #217
Conversation
@@ -90,7 +97,7 @@ pub const Output = struct { | |||
} | |||
|
|||
// 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 👍
@@ -129,7 +134,7 @@ fn base64Encode(data: []const u8) []const u8 { | |||
// This initializing Base64Encoder throws weird error if not wrapped in function (maybe Zig bug?) | |||
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
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!
@@ -90,7 +97,7 @@ pub const Output = struct { | |||
} | |||
|
|||
// 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.