Skip to main content

Module wire

Module wire 

Source
Expand description

Parsing of the Roughtime wire format: a flat tag-length-value message encoding.

A message begins with a u32 tag count, followed by count - 1 u32 cumulative offsets (the first value always starts at offset 0), followed by count u32 tags, followed by the concatenated tag values.

Structsยง

RtMessage
A parsed Roughtime message: a list of (tag, value) pairs borrowed from the input buffer.