Files
sbox-public/engine/Definitions/common/NativeLowLevel.def
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

16 lines
307 B
Modula-2

//
// Built in c# functions like Unsafe.CopyBlockUnaligned benchmark slower
// than calling into native and using those methods instead. So lets do that.
//
[nogc]
native static class NativeLowLevel
{
inline void Copy( void* dest, void* src, long count )
{
V_memcpy( dest, src, (size_t)count );
}
}