Namespace dsbdp.byte-array-conversion

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

Other Namespaces

Show/Hide
dsbdp.data-processing-dsl
DSL for processing data
dsbdp.experiment-helper
Helper that are primarily used during experiments
dsbdp.local-data-processing-pipeline
Pipeline for processing data
dsbdp.local-dpp-self-adaptivity
Functions for self-adaptive local data processing pipelines.
dsbdp.main
Main class for launching experiments
dsbdp.processing-fn-utils
Index Page
Alphabetic Var Index

Public Vars

Usage Documentation

Show/Hide
Helper functions for converting byte arrays into other data types/representations
Back to top

Details of Public Vars

Function: ba-to-str

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.
Back to top View Source

Function: eth-mac-addr-str

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.
Back to top View Source

Function: int16

Arglists:
=========

  (int16 ba idx)

Docstring:
==========

  Get the Int16 value of the two bytes starting at index idx in the byte-array ba.
Back to top View Source

Function: int16be

Arglists:
=========

  (int16be ba idx)

Docstring:
==========

  Get the big endian Int16 value of the two bytes starting at index idx in the byte-array ba.
Back to top View Source

Function: int32

Arglists:
=========

  (int32 ba idx)

Docstring:
==========

  Get the Int32 value of the four bytes starting at index idx in the byte-array ba.
Back to top View Source

Function: int32be

Arglists:
=========

  (int32be ba idx)

Docstring:
==========

  Get the big endian Int32 value of the four bytes starting at index idx in the byte-array ba.
Back to top View Source

Function: int4h

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.
Back to top View Source

Function: int4l

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.
Back to top View Source

Function: int8

Arglists:
=========

  (int8 ba idx)

Docstring:
==========

  Get the byte at the index idx in the byte-array ba.
Back to top View Source

Function: ipv4-addr-str

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.
Back to top View Source

Function: timestamp

Arglists:
=========

  (timestamp ba idx)

Docstring:
==========

  Get the (pcap) timestamp long value starting at index idx in the byte-array ba.
Back to top View Source

Function: timestamp-be

Arglists:
=========

  (timestamp-be ba idx)

Docstring:
==========

  Get the (pcap) big endian timestamp long value starting at index idx in the byte-array ba.
Back to top View Source

Function: timestamp-str

Arglists:
=========

  (timestamp-str ba idx)

Docstring:
==========

  Get the (pcap) timestamp String represenation starting at index idx in the byte-array ba.
Back to top View Source

Function: timestamp-str-be

Arglists:
=========

  (timestamp-str-be ba idx)

Docstring:
==========

  Get the (pcap) big endian timestamp String representation starting at index idx in the byte-array ba.
Back to top View Source

Function: timestamp-to-str

Arglists:
=========

  (timestamp-to-str ts)

Docstring:
==========

  Convert a timestamp from its Long value to a formatted String.
Back to top View Source