Esempio n. 1
0
 public BufferedLoader(int size, int maxItems, BigIntBuffer buffer)
 {
     _size     = size;
     _maxItems = Math.Min(maxItems, BigNestedIntArray.MAX_ITEMS);
     _info     = new BigIntArray(size << 1); // pointer and count
     _info.Fill(EOD);
     _buffer = buffer;
 }
Esempio n. 2
0
 /// <summary>
 /// resets loader. This also resets underlying BigIntBuffer.
 /// </summary>
 /// <param name="size"></param>
 /// <param name="maxItems"></param>
 /// <param name="buffer"></param>
 public void Reset(int size, int maxItems, BigIntBuffer buffer)
 {
     if (size >= Capacity)
     {
         throw new System.ArgumentException("unable to change size");
     }
     _size     = size;
     _maxItems = maxItems;
     _info.Fill(EOD);
     _buffer = buffer;
 }
Esempio n. 3
0
 public BufferedLoader(int size, int maxItems, BigIntBuffer buffer)
 {
     _size = size;
     _maxItems = Math.Min(maxItems, BigNestedIntArray.MAX_ITEMS);
     _info = new BigIntArray(size << 1); // pointer and count
     _info.Fill(EOD);
     _buffer = buffer;
 }