code: public boolean startsWith(Name prefix) {
          byte[] thisBytes = this.getByteArray();
          int thisOffset   = this.getByteOffset();
          int thisLength   = this.getByteLength();
          byte[] prefixBytes = prefix.getByteArray();
          int prefixOffset   = prefix.getByteOffset();
          int prefixLength   = prefix.getByteLength();
  
          int i = 0;
          while (i < prefixLength &&
                 i < thisLength &&
                 thisBytes[thisOffset + i] == prefixBytes[prefixOffset + i])
              i++;
          return i == prefixLength;
      }
docs: Does this name start with prefix?