예제 #1
0
        public static Error Decode(XdrDataInputStream stream)
        {
            var decodedError = new Error();

            decodedError.Code = ErrorCode.Decode(stream);
            decodedError.Msg  = stream.ReadString();
            return(decodedError);
        }
예제 #2
0
        public static Error Decode(IByteReader stream)
        {
            Error decodedError = new Error();

            decodedError.Code = ErrorCode.Decode(stream);
            decodedError.Msg  = XdrEncoding.ReadString(stream);
            return(decodedError);
        }