tustvold commented on code in PR #2464:
URL: https://github.com/apache/arrow-rs/pull/2464#discussion_r946980254


##########
parquet/src/file/serialized_reader.rs:
##########
@@ -376,6 +361,30 @@ pub(crate) fn read_page_header<T: Read>(input: &mut T) -> 
Result<PageHeader> {
     Ok(page_header)
 }
 
+/// Reads a [`PageHeader`] from the provided [`Read`] returning the number of 
bytes read
+fn read_page_header_len<T: Read>(input: &mut T) -> Result<(usize, PageHeader)> 
{
+    /// A wrapper around a [`std::io::Read`] that keeps track of the bytes read
+    struct TrackedRead<R> {

Review Comment:
   This is kind of ugly, but the length of the header isn't stored anywhere



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to