zeek/auxil/spicy/doc/programming/examples/_basic-unit-parse-byte-order.spicy
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

12 lines
238 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
import spicy;
public type Foo = unit {
version: uint32 &byte-order=spicy::ByteOrder::Little;
on %done {
print "0x%x" % self.version;
}
};