SectionHandle is a section of reader with optional padding that implements ReadOpenCloser interface.
| 91 | // SectionHandle is a section of reader with optional padding that implements |
| 92 | // ReadOpenCloser interface. |
| 93 | SectionHandle struct { |
| 94 | r io.ReaderAt |
| 95 | s *io.SectionReader |
| 96 | offset int64 // slice start |
| 97 | size int64 // slice length |
| 98 | padding int64 // padding size |
| 99 | padOffset int64 // offset inside padding when reading a file |
| 100 | } |
| 101 | // FileSectionHandle opens a file and reads a section of it with optional |
| 102 | // padding. It implements the ReadOpenCloser interface. |
| 103 | FileSectionHandle struct { |
nothing calls this directly
no outgoing calls
no test coverage detected