Exemplo n.º 1
0
 public static TVal[] ReadData <TVal, TInd>(
     this BinSeriesFile <TInd, TVal> file, TInd fromInclusive,
     TInd toExclusive, int maxItemCount)
     where TInd : struct, IComparable, IComparable <TInd>
 {
     return(file.Stream(fromInclusive, toExclusive, maxItemCount: maxItemCount).ToArray());
 }
Exemplo n.º 2
0
 public static void AppendData <TInd, TVal>(this BinSeriesFile <TInd, TVal> file, ArraySegment <TVal> buffer)
     where TInd : struct, IComparable <TInd>
 {
     file.AppendData(new[] { buffer });
 }
Exemplo n.º 3
0
 public static void ReadData <TInd, TVal>(
     BinSeriesFile <TInd, TVal> file, long firstItemIdx, ArraySegment <TVal> buffer)
     where TInd : IComparable <TInd>
 {
     ReadData <TVal>(file, firstItemIdx, buffer);
 }
Exemplo n.º 4
0
 public static TVal[] ReadDataToEnd <TVal, TInd>(this BinSeriesFile <TInd, TVal> binSeriesFile, long firstItemIdx)
     where TInd : struct, IComparable, IComparable <TInd>
 {
     return(binSeriesFile.PerformStreaming(firstItemIdx, false).Stream().ToArray());
 }
Exemplo n.º 5
0
 public static TVal[] ReadDataToEnd <TVal, TInd>(this BinSeriesFile <TInd, TVal> binSeriesFile, TInd fromInclusive)
     where TInd : struct, IComparable, IComparable <TInd>
 {
     return(binSeriesFile.Stream(fromInclusive).ToArray());
 }