Extract UTF-8 CLI parser helper

This commit is contained in:
Marek Lemańczyk committed 2025-10-18 19:58:04 +02:00
1 parent ca07ed3388
commit e6f1f87d3b
6 files changed
+335 -739

No files matched your search

+12
View File
@@ -77,6 +77,18 @@ namespace PerfectNumbers.Core
}
}
[ThreadStatic]
private static ArrayPool<byte>? _bytePool;
public static ArrayPool<byte> BytePool
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return _bytePool ??= ArrayPool<byte>.Create();
}
}
[ThreadStatic]
private static ArrayPool<int>? _intPool;