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

Method MaxOffset

internal/utils/bfs/file_header.go:46–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func (this *FileHeader) MaxOffset() int64 {
47 var l = len(this.BodyBlocks)
48 if l > 0 {
49 return this.BodyBlocks[l-1].OriginOffsetTo
50 }
51 return 0
52}
53
54// Compact blocks
55func (this *FileHeader) Compact() {

Callers 1

ReadAtMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected