Example #1
0
 protected virtual void OnWriteReturn(ref NetCore.PkgWriter pkg, ref R data)
 {
     unsafe
     {
         fixed(R *p = &data)
         {
             pkg.WritePtr(p, sizeof(R));
         }
     }
 }
Example #2
0
 protected virtual void OnWriteArgument(ref NetCore.PkgWriter pkg, ref T data)
 {
     unsafe
     {
         fixed(T *p = &data)
         {
             pkg.WritePtr(p, sizeof(T));
         }
     }
 }