MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Read

Method Read

internal/utils/bfs/file_reader.go:34–39  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

32}
33
34func (this *FileReader) Read(b []byte) (n int, err error) {
35 n, err = this.ReadAt(b, this.pos)
36 this.pos += int64(n)
37
38 return
39}
40
41func (this *FileReader) ReadAt(b []byte, offset int64) (n int, err error) {
42 if offset >= this.fileHeader.MaxOffset() {

Callers

nothing calls this directly

Calls 1

ReadAtMethod · 0.95

Tested by

no test coverage detected