mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
25 lines
705 B
C#
25 lines
705 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
#pragma warning disable SA1121 // explicitly using type aliases instead of built-in types
|
|
#if BIT64
|
|
using nuint = System.UInt64;
|
|
#else
|
|
using nuint = System.UInt32;
|
|
#endif
|
|
|
|
namespace System
|
|
{
|
|
public static partial class Buffer
|
|
{
|
|
#if ARM64
|
|
// Determine optimal value for Windows.
|
|
// https://github.com/dotnet/coreclr/issues/13843
|
|
private const nuint MemmoveNativeThreshold = ulong.MaxValue;
|
|
#else
|
|
private const nuint MemmoveNativeThreshold = 2048;
|
|
#endif
|
|
}
|
|
}
|