int before(int offset) { final index = _lowerBound(offset); return offsets[(index - 1).clamp(0, offsets.length - 1)]; }