Exemple #1
0
 public NdrUnmarshalBuffer(byte[] buffer, IEnumerable <NtObject> handles, NdrDataRepresentation data_represenation)
 {
     _stm            = new MemoryStream(buffer);
     _reader         = new BinaryReader(_stm, Encoding.Unicode);
     _handles        = new DisposableList <NtObject>(handles);
     _deferred_reads = new NdrDeferralStack();
     _full_pointers  = new Dictionary <int, object>();
     CheckDataRepresentation(data_represenation);
 }
Exemple #2
0
 public NdrMarshalBuffer(NdrDataRepresentation data_representation)
 {
     _stm             = new MemoryStream();
     _writer          = new BinaryWriter(_stm, Encoding.Unicode);
     _handles         = new List <NtObject>();
     _referent        = 0x20000;
     _deferred_writes = new NdrDeferralStack();
     NdrUnmarshalBuffer.CheckDataRepresentation(data_representation);
     DataRepresentation = data_representation;
 }