コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
     }
 }