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