This commit is contained in:
2025-10-14 16:55:14 -04:00
parent fc329d1064
commit b39603522f
3 changed files with 85 additions and 64 deletions

View File

@@ -196,7 +196,7 @@ test "testing variable length zero copy struct" {
var msg_bytes: [try Message.calcSize(.relay, payload.len)]u8 align(@alignOf(Message)) = undefined;
// Create a view of the byte slice as a Message
const msg: *Message = .init(.relay, &msg_bytes);
const msg: *align(1) Message = .init(.relay, &msg_bytes);
{
// Set the message values
@@ -234,7 +234,7 @@ test "testing variable length zero copy struct" {
var msg_bytes: [try Message.calcSize(.connection, payload.len)]u8 align(@alignOf(Message)) = undefined;
// Create a view of the byte slice as a Message
const msg: *Message = .init(.connection, &msg_bytes);
const msg: *align(1) Message = .init(.connection, &msg_bytes);
{
// Initializing connection header values