code: func (b *bsiGroup) baseValueBetween(min, max int64) (baseValueMin, baseValueMax uint64, outOfRange bool) {
  	if max < b.Min || min > b.Max {
  		return baseValueMin, baseValueMax, true
  	}
  	// Adjust min/max to range.
  	if min > b.Min {
  		baseValueMin = uint64(min - b.Min)
  	}
  	// Make sure the high value of the BETWEEN does not exceed BitDepth.
  	if max > b.Max {
  		baseValueMax = uint64(b.Max - b.Min)
  	} else if max > b.Min {
  		baseValueMax = uint64(max - b.Min)
  	}
  	return baseValueMin, baseValueMax, false
  }
docs: // baseValueBetween adjusts the min/max value to align with the range for Field.