Extract UTF-8 CLI parser helper
This commit is contained in:
1 parent
ca07ed3388
commit
e6f1f87d3b
6 files changed
+335
-739
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user