Crate dis_rs

source ·

Re-exports

Modules

Structs

Enums

Constants

Traits

  • Trait that implements writing data structures to a buffer. This serialize must be independent of protocol version differences for the data structure. Returns the number of bytes written to the buffer.

Functions

  • Calculates the length of a data record when padded to pad_to_num_bytes octets, given that the length of the data in the record is data_length_bytes. The function returns a tuple consisting of the length of the data, the lenght of the padding, and the total (padded) length of the record.
  • Parses the contents of the input, determining the DIS version by itself. This function tries to parse as many PDUs as there are in the buffer, assuming there are only complete PDUs present in the input.
  • Parses the contents of the input as DIS version 6. This function tries to parse as many PDUs as there are in the buffer, assuming there are only complete PDUs present in the input.
  • Parses the contents of the input as DIS version 7. This function tries to parse as many PDUs as there are in the buffer, assuming there are only complete PDUs present in the input.