docs: public static long bytesToNumber(byte[] buffer, int start, int length) {
          long result = 0;
          for (int index = start; index < start + length; index++) {
              result = (result << 8) + unsign(buffer[index]);
          }
          return result;
      }