com.alicizax.unity.cysharp..../Number/BufferEx.cs
陈思海 4fbea560b5 init
2025-01-09 13:57:51 +08:00

29 lines
596 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace System
{
internal static class BufferEx
{
internal static unsafe void ZeroMemory(byte* dest, uint len)
{
if (len == 0) return;
for (int i = 0; i < len; i++)
{
dest[i] = 0;
}
}
internal static unsafe void Memcpy(byte* dest, byte* src, int len)
{
if (len == 0) return;
for (int i = 0; i < len; i++)
{
dest[i] = src[i];
}
}
}
}