Module recording_encoder

Source
Expand description

Functions in the module can be used to convert a Data variant into the respective recorded representation according to the VBus Recording File Format.

Functions§

bytes_from_channel
Stores a “VBus channel marker” record in the provided byte slice.
bytes_from_data
Stores the recorded representation of the Data in the provided byte slice.
bytes_from_record
Stores the record header in the provided byte slice.
bytes_from_timestamp
Stores the timestamp in the provided byte slice.
length_from_data
Returns the number of bytes that the recorded representation of the Data needs.