pitrou commented on a change in pull request #7507: URL: https://github.com/apache/arrow/pull/7507#discussion_r577002938
########## File path: cpp/src/arrow/ipc/reader.cc ########## @@ -108,6 +109,20 @@ Status InvalidMessageType(MessageType expected, MessageType actual) { // ---------------------------------------------------------------------- // Record batch read path +/// \brief Structure to keep common arguments to be passed +struct IpcReadContext { + IpcReadContext(DictionaryMemo* memo, const IpcReadOptions& option, bool swap) + : dictionary_memo(memo), options(option), swap_endian(swap) {} + + DictionaryMemo* dictionary_memo; + + const IpcReadOptions& options; + + /// \brief LoadRecordBatch() or LoadRecordBatchSubset() swaps endianness of elements + /// if this flag is true + const bool swap_endian; +}; Review comment: Would it be useful to add `MetadataVersion` and `Compression::type` here? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org