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

Method Write

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

Source from the content-addressed store, hash-verified

55}
56
57func (this *File) Write(b []byte) (n int, err error) {
58 WriterLimiter.Ack()
59 n, err = this.rawFile.Write(b)
60 WriterLimiter.Release()
61 return
62}
63
64func (this *File) WriteAt(b []byte, off int64) (n int, err error) {
65 WriterLimiter.Ack()

Callers

nothing calls this directly

Calls 3

WriteMethod · 0.65
AckMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected