Liking cljdoc? Tell your friends :D

dsbdp.dsl.byte-array-conversion

Helper functions for converting byte arrays into other data types/representations

Helper functions for converting byte arrays into other data types/representations
raw docstring

ba-to-strclj

(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.
sourceraw docstring

eth-mac-addr-strclj

(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.
sourceraw docstring

int-to-byteclj

(int-to-byte x)
source

int16clj

(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.
sourceraw docstring

int16beclj

(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.
sourceraw docstring

int32clj

(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.
sourceraw docstring

int32beclj

(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.
sourceraw docstring

int4hclj

(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.
sourceraw docstring

int4lclj

(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.
sourceraw docstring

int64clj

(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.
sourceraw docstring

int64beclj

(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.
sourceraw docstring

int8clj

(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.
sourceraw docstring

ipv4-addr-strclj

(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.
sourceraw docstring

timestampclj

(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.
sourceraw docstring

timestamp-beclj

(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.
sourceraw docstring

timestamp-strclj

(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.
sourceraw docstring

timestamp-str-beclj

(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.
sourceraw docstring

timestamp-to-strclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close