public static void Encode(XdrDataOutputStream stream, OperationResult encodedOperationResult) { stream.WriteInt((int)encodedOperationResult.Discriminant.InnerValue); switch (encodedOperationResult.Discriminant.InnerValue) { case OperationResultCode.OperationResultCodeEnum.opINNER: OperationResultTr.Encode(stream, encodedOperationResult.Tr); break; } }
public static void Encode(IByteWriter stream, OperationResult encodedOperationResult) { XdrEncoding.EncodeInt32((int)encodedOperationResult.Discriminant.InnerValue, stream); switch (encodedOperationResult.Discriminant.InnerValue) { case OperationResultCode.OperationResultCodeEnum.opINNER: OperationResultTr.Encode(stream, encodedOperationResult.Tr); break; default: break; } }