code: protected String getString(byte[] data, int offset) {
          if (offset < 0) {
              return "";
          }
  
          int i = offset;
          while (data[i++] != 0x00) {
              ;
          }
          return getString(data, offset, i - offset - 1);
      }
docs: Returns a string value from a zero-terminated byte array at the specified offset.
  
  @param data The source data.
  @param offset The byte offset.
  @return A string.