| ... | ... | @@ -1122,10 +1122,15 @@ pub const Reader = struct { |
| 1122 | 1122 | /// position, use `logicalPos`. |
| 1123 | 1123 | pos: u64 = 0, |
| 1124 | 1124 | size: ?u64 = null, |
| 1125 | | size_err: ?GetEndPosError = null, |
| 1125 | size_err: ?SizeError = null, |
| 1126 | 1126 | seek_err: ?Reader.SeekError = null, |
| 1127 | 1127 | interface: std.Io.Reader, |
| 1128 | 1128 | |
| 1129 | pub const SizeError = std.os.windows.GetFileSizeError || StatError || error{ |
| 1130 | /// Occurs if, for example, the file handle is a network socket and therefore does not have a size. |
| 1131 | Streaming, |
| 1132 | }; |
| 1133 | |
| 1129 | 1134 | pub const SeekError = File.SeekError || error{ |
| 1130 | 1135 | /// Seeking fell back to reading, and reached the end before the requested seek position. |
| 1131 | 1136 | /// `pos` remains at the end of the file. |