PPNet.Message.ChunkedMessageBody (pp_net v0.1.6)

Copy Markdown View Source

Body for the ChunkedMessage message.

Summary

Types

t()

@type t() :: %PPNet.Message.ChunkedMessageBody{
  chunk_data: binary(),
  chunk_index: non_neg_integer(),
  chunk_size: non_neg_integer(),
  datetime: DateTime.t(),
  transaction_id: non_neg_integer()
}

The PPNet.Message.ChunkedMessageBody struct

Fields

  • transaction_id - Matches the transaction_id from the corresponding ChunkedMessageHeader
  • chunk_index - Zero-based index of this chunk within the full message
  • chunk_size - Size in bytes of chunk_data
  • chunk_data - Raw binary fragment of the original message

Functions

is_chunk_index_valid(chunk_index)

(macro)

is_transaction_id_valid(transaction_id)

(macro)