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