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

12 lines
241 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
type Data = unit {
data: bytes &size=2;
} &convert=self.data.to_int();
public type Foo = unit {
numbers: Data[];
on %done { print self.numbers; }
};