Existing methods regFileReader.LogicalRemaining and regFileReader.PhysicalRemaining have inconsistent reciever names with the previous name
Change-Id: Ief2024716737eaf482c4311f3fdf77d92801c36e
Reviewed-on: https://go-review.googlesource.com/76430
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
// Read the sparse map according to the appropriate format.
if is1x0 {
return readGNUSparseMap1x0(tr.curr)
- } else {
- return readGNUSparseMap0x1(hdr.PAXRecords)
}
+ return readGNUSparseMap0x1(hdr.PAXRecords)
}
// mergePAX merges paxHdrs into hdr for all relevant fields of Header.
return io.Copy(w, struct{ io.Reader }{fr})
}
-func (rf regFileReader) LogicalRemaining() int64 {
- return rf.nb
+func (fr regFileReader) LogicalRemaining() int64 {
+ return fr.nb
}
-func (rf regFileReader) PhysicalRemaining() int64 {
- return rf.nb
+
+func (fr regFileReader) PhysicalRemaining() int64 {
+ return fr.nb
}
// sparseFileReader is a fileReader for reading data from a sparse file entry.