zig/test/cases/decl_value_arena.zig
Eric Joldasov 50339f595a all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-19 12:34:42 -07:00

22 lines
425 B
Zig

pub const Protocols: struct {
list: *const fn (*Connection) void = undefined,
handShake: type = struct {
const stepStart: u8 = 0;
},
} = .{};
pub const Connection = struct {
streamBuffer: [0]u8 = undefined,
__lastReceivedPackets: [0]u8 = undefined,
handShakeState: u8 = Protocols.handShake.stepStart,
};
pub fn main() void {
var conn: Connection = undefined;
_ = conn;
}
// run
//