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

Struct FileSectionHandle

cmn/cos/io.go:103–106  ·  view source on GitHub ↗

FileSectionHandle opens a file and reads a section of it with optional padding. It implements the ReadOpenCloser interface.

Source from the content-addressed store, hash-verified

101 // FileSectionHandle opens a file and reads a section of it with optional
102 // padding. It implements the ReadOpenCloser interface.
103 FileSectionHandle struct {
104 fh *FileHandle
105 sec *SectionHandle
106 }
107 // ByteHandle is a byte buffer(made from []byte) that implements
108 // ReadOpenCloser interface
109 ByteHandle struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected