Skip to content

Commit

Permalink
maybe a better way to get message when header length bytes are expected
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Jun 28, 2024
1 parent b4ddfc7 commit 5f6972b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mcap_to_rerun/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ fn map_mcap<P: AsRef<Utf8Path>>(p: P) -> Result<Mmap> {
unsafe { Mmap::map(&fd) }.context("Couldn't map MCAP file")
}

// TODO(lucasw) https://github.com/Carter12s/roslibrust/issues/158#issuecomment-2187839437
fn get_message_data_with_header<'a>(raw_message_data: std::borrow::Cow<'a, [u8]>) -> Vec<u8> {
let len_header = raw_message_data.len() as u32;
let mut msg_with_header = Vec::from(len_header.to_le_bytes());
Expand Down

0 comments on commit 5f6972b

Please sign in to comment.