Example #1
0
 /// <summary>Reads the empty parameter list, calling this methods ensure that the frame payload
 /// correspond to the empty parameter list.</summary>
 public void ReadEmptyParamList()
 {
     if (HasCompressedPayload)
     {
         DecompressPayload();
     }
     Encapsulation.AsReadOnlyMemory().ReadEmptyEncapsulation(Protocol.GetEncoding());
 }
Example #2
0
 /// <summary>Reads the request frame parameter list.</summary>
 /// <param name="communicator">The communicator.</param>
 /// <param name="reader">An InputStreamReader delegate used to read the request frame
 /// parameters.</param>
 /// <returns>The request parameters, when the frame parameter list contains multiple parameters
 /// they must be return as a tuple.</returns>
 public T ReadParamList <T>(Communicator communicator, InputStreamReader <T> reader)
 {
     if (HasCompressedPayload)
     {
         DecompressPayload();
     }
     return(Encapsulation.AsReadOnlyMemory().ReadEncapsulation(Protocol.GetEncoding(), communicator, reader));
 }