Helper functions for converting byte arrays into other data types/representations
dsbdp.dsl.DslHelper | Java Interop for using the DSL from within Java. |
dsbdp.dsl.core | DSL for processing data |
dsbdp.dsl.experiment-helper | Helper that are primarily used during experiments |
dsbdp.dsl.main | Main class for launching a test CLI. |
Index Page | |
Alphabetic Var Index |
Helper functions for converting byte arrays into other data types/representations
Arglists: ========= (ba-to-str ba idx len) Docstring: ========== Convert a byte array ba into a String representation, interpreting the ba content as ASCII values. Starts at index idx and converts the number of len bytes.
Arglists: ========= (eth-mac-addr-str ba idx) Docstring: ========== Starting at index idx of the byte array ba, convert the following bytes into the Ethernet MAC address String representation.
Arglists: ========= (int-to-byte x) Docstring: ========== No docs attached.
Arglists: ========= (int16 ba idx) Docstring: ========== Get the Int16 value of the two bytes starting at index idx in the byte-array ba.
Arglists: ========= (int16be ba idx) Docstring: ========== Get the big endian Int16 value of the two bytes starting at index idx in the byte-array ba.
Arglists: ========= (int32 ba idx) Docstring: ========== Get the Int32 value of the four bytes starting at index idx in the byte-array ba.
Arglists: ========= (int32be ba idx) Docstring: ========== Get the big endian Int32 value of the four bytes starting at index idx in the byte-array ba.
Arglists: ========= (int4h ba idx) Docstring: ========== Get the higher 4 bits (nibble) of the byte at the given index idx in the provided byte-array ba.
Arglists: ========= (int4l ba idx) Docstring: ========== Get the lower 4 bits (nibble) of the byte at the given index idx in the provided byte-array ba.
Arglists: ========= (int64 ba idx) Docstring: ========== Get the Int64 value of the four bytes starting at index idx in the byte-array ba.
Arglists: ========= (int64be ba idx) Docstring: ========== Get the big endian Int32 value of the four bytes starting at index idx in the byte-array ba.
Arglists: ========= (int8 ba idx) Docstring: ========== Get the byte at the index idx in the byte-array ba.
Arglists: ========= (ipv4-addr-str ba idx) Docstring: ========== Starting at index idx of the byte array ba, convert the following bytes into the IPv4 address String representation.
Arglists: ========= (timestamp ba idx) Docstring: ========== Get the (pcap) timestamp long value starting at index idx in the byte-array ba.
Arglists: ========= (timestamp-be ba idx) Docstring: ========== Get the (pcap) big endian timestamp long value starting at index idx in the byte-array ba.
Arglists: ========= (timestamp-str ba idx) Docstring: ========== Get the (pcap) timestamp String representation starting at index idx in the byte-array ba.
Arglists: ========= (timestamp-str-be ba idx) Docstring: ========== Get the (pcap) big endian timestamp String representation starting at index idx in the byte-array ba.
Arglists: ========= (timestamp-to-str ts) Docstring: ========== Convert a timestamp from its Long value to a formatted String.