BitFieldLoc constructor

const BitFieldLoc(
  1. int start,
  2. int end
)

Implementation

const BitFieldLoc(this.start, int end)
    : assert(end >= start),
      // Rive runtime only supports 32 bits per field. Pack multiple bitfields
      // if you need more.
      assert(end < 32),
      count = end - start + 1,
      mask = ((1 << (end - start + 1)) - 1) << start;