Max 获取最大位置
()
| 177 | |
| 178 | // Max 获取最大位置 |
| 179 | func (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 重置范围信息 |
| 187 | func (this *PartialRanges) Reset() { |
no outgoing calls