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

Method WriteHeader

internal/utils/bfs/file_writer.go:40–49  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

38}
39
40func (this *FileWriter) WriteHeader(b []byte) (n int, err error) {
41 if !this.isPartial && !this.hasMeta {
42 err = errors.New("no meta found")
43 return
44 }
45
46 n, err = this.bFile.Write(this.hash, BlockTypeHeader, b, -1)
47 this.realHeaderSize += int64(n)
48 return
49}
50
51func (this *FileWriter) WriteBody(b []byte) (n int, err error) {
52 if !this.isPartial && !this.hasMeta {

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected