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

Method ReadAt

internal/utils/fs/file.go:50–55  ·  view source on GitHub ↗
(b []byte, off int64)

Source from the content-addressed store, hash-verified

48}
49
50func (this *File) ReadAt(b []byte, off int64) (n int, err error) {
51 ReaderLimiter.Ack()
52 n, err = this.rawFile.ReadAt(b, off)
53 ReaderLimiter.Release()
54 return
55}
56
57func (this *File) Write(b []byte) (n int, err error) {
58 WriterLimiter.Ack()

Callers

nothing calls this directly

Calls 2

AckMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected