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

21 lines
347 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
public type Foo = unit {
on %init() { self.start = self.input(); }
a: A { self.set_input(self.start); }
b: B;
on %done() { print self; }
var start: iterator<stream>;
};
type A = unit {
x: uint32;
};
type B = unit {
y: bytes &size=4;
};