예제 #1
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;
 }
예제 #2
0
 void INdrStructure.Unmarshal(NdrUnmarshalBuffer unmarshal)
 {
     unmarshal.ReadInt32(); // length.
     Data = unmarshal.ReadConformantByteArray();
 }