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

Method Max

internal/caches/partial_ranges.go:179–184  ·  view source on GitHub ↗

Max 获取最大位置

()

Source from the content-addressed store, hash-verified

177
178// Max 获取最大位置
179func (this *PartialRanges) Max() int64 {
180 if len(this.Ranges) > 0 {
181 return this.Ranges[len(this.Ranges)-1][1]
182 }
183 return 0
184}
185
186// Reset 重置范围信息
187func (this *PartialRanges) Reset() {

Callers 3

MaxLengthMethod · 0.80
TestNewPartialRangesFunction · 0.80
WriteAtMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestNewPartialRangesFunction · 0.64