예제 #1
0
 private void WriteEmbeddedPointer <T>(NdrEmbeddedPointer <T> pointer, Action writer)
 {
     if (WriteReferent(pointer))
     {
         _deferred_writes.Add(writer);
     }
 }
예제 #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);
        }
예제 #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));
 }
예제 #4
0
 public void WriteEmbeddedPointer <T, U>(NdrEmbeddedPointer <T> pointer, Action <T, U> writer, U arg)
 {
     WriteEmbeddedPointer(pointer, () => writer(pointer, arg));
 }
예제 #5
0
 public void WriteEmbeddedPointer <T>(NdrEmbeddedPointer <T> pointer, Action <T> writer)
 {
     WriteEmbeddedPointer(pointer, () => writer(pointer));
 }