diff options
Diffstat (limited to 'src/message.zig')
-rw-r--r-- | src/message.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/message.zig b/src/message.zig index efeea29..01eb72c 100644 --- a/src/message.zig +++ b/src/message.zig @@ -82,7 +82,11 @@ test "testing variable length zero copy struct" { zcm.type = .relay; zcm.length = 3; std.debug.print("{any}\n", .{zcm}); - std.debug.print("{any}\n", .{zcm.getSaprusTypePayload()}); + std.debug.print("{any}\n", .{(try zcm.getSaprusTypePayload()).relay}); + if (false) { + // Illegal behavior + std.debug.print("{any}\n", .{(try zcm.getSaprusTypePayload()).connection}); + } if (false) { std.debug.print("{any}\n", .{zcm.getRelay()}); std.debug.print("{any}\n", .{zcm.getConnection()}); |