Module mcap::read

source ·
Expand description

Read MCAP files

MCAPs are read from a byte slice instead of a Read trait object. This helps us avoid unnecessary copies, since Schemas and Messages can refer directly to their data.

Consider memory-mapping the file - the OS will load (and cache!) it on-demand, without any further system calls.



  • Nonstandard reading options, e.g., to be more lenient when trying to recover incomplete/damaged files.


  • Read the attachment with the given index.
  • Read the MCAP footer.
  • Read the metadata with the given index.