Exemplo n.º 1
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;
 }
 void INdrStructure.Unmarshal(NdrUnmarshalBuffer unmarshal)
 {
     unmarshal.ReadInt32(); // length.
     Data = unmarshal.ReadConformantByteArray();
 }