protected override unsafe void CopyDeserializeUnsafe(ref byte[] src, int srcOffset, ref Rect[] dest, int byteLength) { fixed(void *pSrc = &src[srcOffset]) fixed(void *pDest = dest) { MemoryUtil.SimpleMemoryCopy(pDest, pSrc, byteLength); } }
protected override unsafe void CopySerializeUnsafe(ref Rect[] src, ref byte[] dest, int destOffset, int byteLength) { fixed(void *pSrc = src) fixed(void *pDest = &dest[destOffset]) { MemoryUtil.SimpleMemoryCopy(pDest, pSrc, byteLength); } }