use array defaults (#129)

This commit is contained in:
Adam Hathcock
2024-09-27 11:00:21 +01:00
committed by GitHub
parent f541525a80
commit 9a3eddf6d5
@@ -14,7 +14,7 @@ public class SpeckleObjectSerializerPool
public JsonTextReader GetJsonTextReader(TextReader reader) => new(reader) { ArrayPool = _charPool };
private readonly SerializerPool<char> _charPool = new(ArrayPool<char>.Create(4096, 4096));
private readonly SerializerPool<char> _charPool = new(ArrayPool<char>.Create()); //use default values
private class SerializerPool<T>(ArrayPool<T> pool) : IArrayPool<T>
{