Exemple #1
0
 /// <summary>
 /// Creates a new stream data set connected to the byte array
 /// data source provided.
 /// </summary>
 /// <param name="data">
 /// Byte array containing uncompressed data set.
 /// </param>
 /// <param name="mode">
 /// The mode of operation the data set will be using.
 /// </param>
 internal DataSet(byte[] data, Modes mode)
     : base(DateTime.MinValue, mode)
 {
     Source = new SourceMemory(data);
     Pool   = new Pool(Source);
 }
 /// <summary>
 /// Constructs a new pool of readers for <see cref="SourceBase"/>
 /// provided.
 /// </summary>
 /// <param name="source">
 /// The data source for the list.
 /// </param>
 public Pool(SourceBase source)
 {
     Source = source;
 }
Exemple #3
0
 /// <summary>
 /// Creates a new stream <see cref="DataSet"/> connected to the data
 /// file provided.
 /// </summary>
 /// <param name="fileName">
 /// Valid path to the uncompressed data set file.
 /// </param>
 /// <param name="lastModified">
 /// Date and time the source data was last modified.
 /// </param>
 /// <param name="mode">
 /// The mode of operation the data set will be using.
 /// </param>
 /// <param name="isTempFile">
 /// True if the file should be deleted when the source is disposed.
 /// </param>
 internal DataSet(string fileName, DateTime lastModified, Modes mode, bool isTempFile)
     : base(lastModified, mode)
 {
     Source = new SourceFile(fileName, isTempFile);
     Pool   = new Pool(Source);
 }
Exemple #4
0
 /// <summary>
 /// Constructs a new pool of readers for <see cref="SourceBase"/>
 /// provided.
 /// </summary>
 /// <param name="source">
 /// The data source for the list.
 /// </param>
 internal Pool(SourceBase source)
 {
     Source = source;
 }