MCPcopy
hub / github.com/NVIDIA/aistore / SectionHandle

Struct SectionHandle

cmn/cos/io.go:93–100  ·  view source on GitHub ↗

SectionHandle is a section of reader with optional padding that implements ReadOpenCloser interface.

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected