zeek/auxil/spicy/doc/programming/examples/_parse-switch-size.spicy
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

12 lines
269 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
public type Foo = unit {
tag: uint8;
switch ( self.tag ) {
1 -> b1: bytes &eod;
2 -> b2: bytes &eod &convert=$$.lower();
} &size=3;
on %done { print self; }
};