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)); } }
public void Reset() { mStreamWriter = new Support.NativeStreamWriter(0); RPCHeader header = new RPCHeader(); header.ToDefault(); unsafe { WritePtr(&header, sizeof(RPCHeader)); } }
public int CurPtr() { return(RPCHeader.SizeOf() + GetPosition()); }
public int DataPtr() { return(RPCHeader.SizeOf()); }