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

Method Read

internal/utils/fs/file.go:43–48  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

41}
42
43func (this *File) Read(b []byte) (n int, err error) {
44 ReaderLimiter.Ack()
45 n, err = this.rawFile.Read(b)
46 ReaderLimiter.Release()
47 return
48}
49
50func (this *File) ReadAt(b []byte, off int64) (n int, err error) {
51 ReaderLimiter.Ack()

Callers

nothing calls this directly

Calls 3

ReadMethod · 0.65
AckMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected