aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-05-07 20:19:32 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-05-07 20:19:32 -0700
commit12615602144288b3123f352e5d586714bc01b4dc (patch)
tree5278fee0e74b7b123c37940d53dd37078a296c19 /src/api/schema.zig
parentcaa747ba717e28791089d2db22ee9300f11b4d25 (diff)
downloadbun-12615602144288b3123f352e5d586714bc01b4dc.tar.gz
bun-12615602144288b3123f352e5d586714bc01b4dc.tar.zst
bun-12615602144288b3123f352e5d586714bc01b4dc.zip
This _sort of_ works
Former-commit-id: 8c4917fe60ad049789aea96018363997e9f20e8f
Diffstat (limited to 'src/api/schema.zig')
-rw-r--r--src/api/schema.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/schema.zig b/src/api/schema.zig
index d34e501a3..c10e5b5a3 100644
--- a/src/api/schema.zig
+++ b/src/api/schema.zig
@@ -442,6 +442,7 @@ pub fn update(result: *OutputFile, allocator: *std.mem.Allocator, reader: anytyp
pub fn encode(result: *const @This(), writer: anytype) anyerror!void {
+ try writer.writeIntNative(u32, @intCast(u32, result.data.len));
try writer.writeAll(result.data);
try writer.writeIntNative(u32, @intCast(u32, result.path.len));