public void Initialize() { _data = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; _pool = new FakeNativeMemoryChunkPool(); _stats = new PoolStats <NativeMemoryChunk>(_pool); byte[] pooledByteArray = new byte[8]; MockByteArrayPool byteArrayPool = new MockByteArrayPool(pooledByteArray); _pooledByteStreams = new PooledByteStreams(byteArrayPool, 8); _factory = new NativePooledByteBufferFactory(_pool, _pooledByteStreams); }
public void Initialize() { _pool = new FakeNativeMemoryChunkPool(); _stats = new PoolStats <NativeMemoryChunk>(_pool); _data = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; }
public void Initialize() { _pool = new TestPool(10, 14); _stats = new PoolStats <byte[]>(_pool); }