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

Method MaxLength

internal/caches/reader_partial_file.go:132–137  ·  view source on GitHub ↗

MaxLength 获取区间最大长度

()

Source from the content-addressed store, hash-verified

130
131// MaxLength 获取区间最大长度
132func (this *PartialFileReader) MaxLength() int64 {
133 if this.bodySize > 0 {
134 return this.bodySize
135 }
136 return this.ranges.Max() + 1
137}
138
139func (this *PartialFileReader) Ranges() *PartialRanges {
140 return this.ranges

Callers 2

doCacheReadMethod · 0.80
tryPartialReaderMethod · 0.80

Calls 1

MaxMethod · 0.80

Tested by

no test coverage detected