Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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;
            }
        }