sheave_core::messages

Module headers

Source
Expand description

§The Chunk Headers

Every chunk has following headers:

  1. The Basic Header
  2. The Message Header
  3. [Extended Timestamp]

§The Basic Header

This indicates:

  • A pattern of followed message header.
  • Which the chunk stream are we in.

§The Message Header

This indicates:

  • A timestamp which has passed from its stream started.
  • A pattern of followed chunk data.
  • Which the message stream are we in.

This must be depended its format on a value in the basic header. That is, the message header has following correspondence with the basic header:

NumberExpected Format
011 bytes
17 bytes
23 bytes
30 bytes

§Extended Timestamp

This is added when a timestamp in its message header exceeded the 3 bytes range. In that case, note its field must be filled with 0xFFFFFF (16777215).

Re-exports§

  • pub use self::message::New;
  • pub use self::message::SameSource;
  • pub use self::message::TimerChange;

Structs§

  • Indicates the chunk stream and message header’s format. This header has 3 types.

Enums§

  • The first 2 bits to indicate a format of message header.
  • Indicates a chunk datum format and which stream is it into. This header has 4 types.
  • Representation of message type id byte of the Message header.