docs: private byte[] getLengthDescriptor(int length) {
          int c = 0;
          int j = length & 15;
          length = length >> 4;
          int max = 9;
          byte[] result = new byte[max + 1];
          
          while (length > 0) {
              byte b = (byte) (length & 255);
              result[max - c] = b;
              length = length >> 8;
              c++;
          }
          
          byte b = (byte) ((c << 4) + j);
          result[max - c] = b;
          return Arrays.copyOfRange(result, max - c, max + 1);
      }