Luv-Ray opened a new issue, #5584: URL: https://github.com/apache/arrow-rs/issues/5584
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] (This section helps Arrow developers understand the context and *why* for this feature, in addition to the *what*) --> There is a `Vec<u8>` in [IPC Streaming Format](https://arrow.apache.org/docs/format/Columnar.html#ipc-streaming-format), and I want to convert it to record batches. For now my code is like this: ```rust use bytes::Buf; fn deserialize_stream_buf(buf: Vec<u8>) -> Vec<RecordBatch> { let buf = buf.reader(); let reader = StreamReader::try_new(buf, None).unwrap(); reader.map(|b| b.unwrap()).collect() } ``` But it's not zero-copy, each time `next()` is called, `StreamReader` will copy the data. **Describe the solution you'd like** <!-- A clear and concise description of what you want to happen. --> read a memory region in `IPC Streaming Format` with zero-copy. **Describe alternatives you've considered** <!-- A clear and concise description of any alternative solutions or features you've considered. --> Is there could be an API like `FileReader`? Take ownership of the memery region rather than borrowing it. -- 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]
