docs: public byte[] readBytesNullEnd() {
      int initialPosition = position;
      int cnt = 0;
      while (remaining() > 0 && (buf[position++] != 0)) {
        cnt++;
      }
      final byte[] tmpArr = new byte[cnt];
      System.arraycopy(buf, initialPosition, tmpArr, 0, cnt);
      return tmpArr;
    }