mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-31 02:18:18 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
16 lines
307 B
Modula-2
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 );
|
|
}
|
|
}
|
|
|