def allSet?
      # Check all but last byte quickly
      (@data.length-1).times do |i|
        return false if @data[i] != 0xff
      end
      # Check last byte slowly
      toCheck = @length % 8
      toCheck = 8 if toCheck == 0
      ((@length-toCheck)..(@length-1)).each do |i|
        return false if ! set?(i)
      end
      true
    end
def allSet?
      # Check all but last byte quickly
      (@data.length-1).times do |i|
        return false if @data[i] != 0xff
      end
      # Check last byte slowly
      toCheck = @length % 8
      toCheck = 8 if toCheck == 0
      ((@length-toCheck)..(@length-1)).each do |i|
        return false if ! set?(i)
      end
      true
    end
Are all bits in the Bitfield set?