code: AmqpBuffer putMethodArguments(Object[] args, List<Parameter> formalParams)
      {
          
          for (int i = 0; i < formalParams.size(); i++)
          {
          
              String type = formalParams.get(i).type;
          
              if (type == null)
              {
                  throw new IllegalStateException("Unknown AMQP domain " + type);
              }
              String typeMap = getMappedType(type);
          
              putObjectOfType(typeMap, args[i]);
              // support packing of consecutive bits into a single byte
              this.bitCount = (byte)((typeMap == "Bit") ? this.bitCount + 1 : 0);
          }
          return this;
      }
docs: Encodes arguments given a method's parameter list and the provided arguments