Helper functions for converting byte arrays into other data types/representations
Helper functions for converting byte arrays into other data types/representations
(ba-to-str ba idx len)
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.
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.
(eth-mac-addr-str ba idx)
Starting at index idx of the byte array ba, convert the following bytes into the Ethernet MAC address String representation.
Starting at index idx of the byte array ba, convert the following bytes into the Ethernet MAC address String representation.
(int16 ba idx)
Get the Int16 value of the two bytes starting at index idx in the byte-array ba.
Get the Int16 value of the two bytes starting at index idx in the byte-array ba.
(int16be ba idx)
Get the big endian Int16 value of the two bytes starting at index idx in the byte-array ba.
Get the big endian Int16 value of the two bytes starting at index idx in the byte-array ba.
(int32 ba idx)
Get the Int32 value of the four bytes starting at index idx in the byte-array ba.
Get the Int32 value of the four bytes starting at index idx in the byte-array ba.
(int32be ba idx)
Get the big endian Int32 value of the four bytes starting at index idx in the byte-array ba.
Get the big endian Int32 value of the four bytes starting at index idx in the byte-array ba.
(int4h ba idx)
Get the higher 4 bits (nibble) of the byte at the given index idx in the provided byte-array ba.
Get the higher 4 bits (nibble) of the byte at the given index idx in the provided byte-array ba.
(int4l ba idx)
Get the lower 4 bits (nibble) of the byte at the given index idx in the provided byte-array ba.
Get the lower 4 bits (nibble) of the byte at the given index idx in the provided byte-array ba.
(int64 ba idx)
Get the Int64 value of the four bytes starting at index idx in the byte-array ba.
Get the Int64 value of the four bytes starting at index idx in the byte-array ba.
(int64be ba idx)
Get the big endian Int32 value of the four bytes starting at index idx in the byte-array ba.
Get the big endian Int32 value of the four bytes starting at index idx in the byte-array ba.
(int8 ba idx)
Get the byte at the index idx in the byte-array ba.
Get the byte at the index idx in the byte-array ba.
(ipv4-addr-str ba idx)
Starting at index idx of the byte array ba, convert the following bytes into the IPv4 address String representation.
Starting at index idx of the byte array ba, convert the following bytes into the IPv4 address String representation.
(timestamp ba idx)
Get the (pcap) timestamp long value starting at index idx in the byte-array ba.
Get the (pcap) timestamp long value starting at index idx in the byte-array ba.
(timestamp-be ba idx)
Get the (pcap) big endian timestamp long value starting at index idx in the byte-array ba.
Get the (pcap) big endian timestamp long value starting at index idx in the byte-array ba.
(timestamp-str ba idx)
Get the (pcap) timestamp String representation starting at index idx in the byte-array ba.
Get the (pcap) timestamp String representation starting at index idx in the byte-array ba.
(timestamp-str-be ba idx)
Get the (pcap) big endian timestamp String representation starting at index idx in the byte-array ba.
Get the (pcap) big endian timestamp String representation starting at index idx in the byte-array ba.
(timestamp-to-str ts)
Convert a timestamp from its Long value to a formatted String.
Convert a timestamp from its Long value to a formatted String.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close