Not using writer

Use direct mem copying into the buf instead of writing to it with the writer interface.
Probably better to use the writer actually, since this suffers from the same issue with the extra two null bytes.
This commit is contained in:
2025-04-05 00:48:10 -04:00
parent 77e3399a49
commit 5bd92f7e81
2 changed files with 24 additions and 21 deletions

View File

@@ -51,10 +51,10 @@ pub fn sendInitialConnection(payload: []const u8, initial_port: u16, allocator:
.seq_num = 1,
.msg_id = 2,
.reserved = 5,
.options = .{
.opt2 = true,
.opt8 = true,
},
// .options = .{
// .opt2 = true,
// .opt8 = true,
// },
},
.payload = payload,
},