alamb commented on issue #6709:
URL: https://github.com/apache/arrow-rs/issues/6709#issuecomment-2591253252

   > Nevertheless, may I still request a more structured way (like implemented 
in c++ library) of reading IPC file via mmap, which can be more ergnomic to use?
   
   @totoroyyb  sounds like a good idea to figure out a better way to do this
   
   I noticed that `Mmap` implements `as_ref()` for `[u8]`
   
   
https://docs.rs/memmap/latest/memmap/struct.Mmap.html#impl-AsRef%3C%5Bu8%5D%3E-for-Mmap
   
   So i think that means you can make a cursor over it like
   ```rust
   let cursor = std::io::Cursor::new(mmap.as_ref());
   ```
   
   And then you can use it with a FileReader
   
   - I am starting to work on improving the doc here: 
https://github.com/apache/arrow-rs/pull/6983


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to