ApproxLen returns the approximate number of UIDs in the UidPack object.
()
| 224 | |
| 225 | // ApproxLen returns the approximate number of UIDs in the UidPack object. |
| 226 | func (d *Decoder) ApproxLen() int { |
| 227 | if d == nil { |
| 228 | return 0 |
| 229 | } |
| 230 | if d.Pack == nil { |
| 231 | return 0 |
| 232 | } |
| 233 | return int(d.Pack.BlockSize) * (len(d.Pack.Blocks) - d.blockIdx) |
| 234 | } |
| 235 | |
| 236 | type searchFunc func(int) bool |
| 237 |
nothing calls this directly
no outgoing calls
no test coverage detected