Exemplo n.º 1
0
 public PkgWriter(int size)
 {
     Waiter = null;
     unsafe
     {
         mStreamWriter = new Support.NativeStreamWriter((UInt32)sizeof(RPCHeader) + (UInt32)size);
         RPCHeader header = new RPCHeader();
         header.ToDefault();
         WritePtr(&header, sizeof(RPCHeader));
     }
 }
Exemplo n.º 2
0
        public void Reset()
        {
            mStreamWriter = new Support.NativeStreamWriter(0);

            RPCHeader header = new RPCHeader();

            header.ToDefault();
            unsafe
            {
                WritePtr(&header, sizeof(RPCHeader));
            }
        }