isCompacted returns whether an entry is compacted. Returns false if not found.
(h dataUsageHash)
| 438 | // isCompacted returns whether an entry is compacted. |
| 439 | // Returns false if not found. |
| 440 | func (d *dataUsageCache) isCompacted(h dataUsageHash) bool { |
| 441 | due, ok := d.Cache[h.Key()] |
| 442 | if !ok { |
| 443 | return false |
| 444 | } |
| 445 | return due.Compacted |
| 446 | } |
| 447 | |
| 448 | // findChildrenCopy returns a copy of the children of the supplied hash. |
| 449 | func (d *dataUsageCache) findChildrenCopy(h dataUsageHash) dataUsageHashMap { |