code: public static int beginResidual(boolean useFiveBitParam, byte order,
        EncodedElement ele) {
      ele = ele.getEnd();
      int paramSize = (useFiveBitParam) ? 1:0;
      ele.addInt(paramSize, 2);
      ele.addInt(order, 4);
      return 6;
    }
docs: Create the residual headers for a FLAC stream.
  
  @param useFiveBitParam Set TRUE if using a five-bit parameter size, FALSE
  for a four-bit parameter
  @param order Specify order of partitions to be used(actual number of
  partitions will be 2^order.
  @param ele   EncodedElement to write header to.
  @return total written size of header.