Ejemplo n.º 1
0
		public BufferredDataSource(int totalCount, ChunkReader chunkReader, int bufferMaxSize, bool expectManualBufferUpdates)
		{
			if (bufferMaxSize < 1)
				bufferMaxSize = BUFFER_MAX_SIZE_DEFAULT;
			else if (bufferMaxSize > totalCount)
				bufferMaxSize = totalCount;

			_ChunkReader = chunkReader;
			_BufferSize = bufferMaxSize;
			_ExpectManualBufferUpdates = expectManualBufferUpdates;
			_ReadBuffer = new T[_BufferSize];
			_LazyList = new LazyList<T>(ValueCreator, totalCount);
		}
Ejemplo n.º 2
0
 public EnumerableLazyList(LazyList <T> lazyList)
 {
     _LazyList = lazyList;
 }
Ejemplo n.º 3
0
 public LazyDataHelper(IOSA iAdapter, Func <int, T> newModelCreator, bool keepVelocityOnCountChange = true)
 {
     _Adapter  = iAdapter;
     _DataList = new LazyList <T>(newModelCreator, 0);
     _KeepVelocityOnCountChange = keepVelocityOnCountChange;
 }