mirror of
https://git.robbyzambito.me/zaprus
synced 2025-12-20 16:24:50 +00:00
This commit is contained in:
@@ -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()});
|
||||
|
||||
Reference in New Issue
Block a user