Ejemplo n.º 1
0
        internal static ExtendedErrorInfo?Decode(byte[] data)
        {
            NdrPickledType     pickled_type = new NdrPickledType(data);
            NdrUnmarshalBuffer u            = new NdrUnmarshalBuffer(pickled_type);
            var res = u.ReadReferentValue(u.ReadStruct <ExtendedErrorInfo>, false);

            u.PopulateDeferredPointers();
            return(res);
        }
        internal static RpcExtendedErrorInfoInternal?Decode(byte[] data)
        {
            NdrUnmarshalBuffer           u = new NdrUnmarshalBuffer(data);
            RpcExtendedErrorInfoInternal v;
            // Read out referent.
            int referent = u.ReadReferent();

            if (referent == 0)
            {
                return(null);
            }
            v = u.ReadStruct <RpcExtendedErrorInfoInternal>();
            u.PopulateDeferredPointers();
            return(v);
        }