MCPcopy
hub / github.com/wavetermdev/waveterm / DataLength

Method DataLength

pkg/filestore/blockstore.go:69–74  ·  view source on GitHub ↗

for regular files this is just Size for circular files this is min(Size, MaxSize)

()

Source from the content-addressed store, hash-verified

67// for regular files this is just Size
68// for circular files this is min(Size, MaxSize)
69func (f WaveFile) DataLength() int64 {
70 if f.Opts.Circular {
71 return minInt64(f.Size, f.Opts.MaxSize)
72 }
73 return f.Size
74}
75
76// for regular files this is just 0
77// for circular files this is the index of the first byte of data we have

Callers 2

DebugTermCommandMethod · 0.80

Calls 1

minInt64Function · 0.85

Tested by

no test coverage detected