code: function seekNext(pos) {
                  var maskL = getMaskLength();
                  if (pos >= maskL) return maskL;
                  var position = pos;
                  while (++position < maskL && !isMask(position)) {
                  }
                  return position;
              }
docs: pos: from position