예제 #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));
     }
 }
예제 #2
0
        public void Reset()
        {
            mStreamWriter = new Support.NativeStreamWriter(0);

            RPCHeader header = new RPCHeader();

            header.ToDefault();
            unsafe
            {
                WritePtr(&header, sizeof(RPCHeader));
            }
        }
예제 #3
0
 public int CurPtr()
 {
     return(RPCHeader.SizeOf() + GetPosition());
 }
예제 #4
0
 public int DataPtr()
 {
     return(RPCHeader.SizeOf());
 }