Esempio n. 1
0
 private void WriteEmbeddedPointer <T>(NdrEmbeddedPointer <T> pointer, Action writer)
 {
     if (WriteReferent(pointer))
     {
         _deferred_writes.Add(writer);
     }
 }
Esempio n. 2
0
        public NdrEmbeddedPointer <T> ReadEmbeddedPointer <T>(Func <T> unmarshal_func, bool full_pointer)
        {
            int referent = ReadInt32();

            if (referent == 0)
            {
                return(null);
            }

            if (full_pointer)
            {
                unmarshal_func = () => ReadFullPointer(referent, unmarshal_func);
            }

            var deferred_reader = NdrEmbeddedPointer <T> .CreateDeferredReader(unmarshal_func);

            _deferred_reads.Add(deferred_reader.Item2);
            return(deferred_reader.Item1);
        }
Esempio n. 3
0
 public void WriteEmbeddedPointer <T, U, V>(NdrEmbeddedPointer <T> pointer, Action <T, U, V> writer, U arg, V arg2)
 {
     WriteEmbeddedPointer(pointer, () => writer(pointer, arg, arg2));
 }
Esempio n. 4
0
 public void WriteEmbeddedPointer <T, U>(NdrEmbeddedPointer <T> pointer, Action <T, U> writer, U arg)
 {
     WriteEmbeddedPointer(pointer, () => writer(pointer, arg));
 }
Esempio n. 5
0
 public void WriteEmbeddedPointer <T>(NdrEmbeddedPointer <T> pointer, Action <T> writer)
 {
     WriteEmbeddedPointer(pointer, () => writer(pointer));
 }