AdjustMaxIfPossible adjusts `*n1` to be `max(*n1, n2)`. Return true iff `n2` was greater than or equal to `*n1`.
(n2 Count32)
| 51 | // AdjustMaxIfPossible adjusts `*n1` to be `max(*n1, n2)`. Return true |
| 52 | // iff `n2` was greater than or equal to `*n1`. |
| 53 | func (n1 *Count32) AdjustMaxIfPossible(n2 Count32) bool { |
| 54 | if n2 < *n1 { |
| 55 | return false |
| 56 | } |
| 57 | |
| 58 | *n1 = n2 |
| 59 | return true |
| 60 | } |
| 61 | |
| 62 | // Count64 is a count of something, capped at math.MaxUint64. |
| 63 | type Count64 uint64 |