Esempio n. 1
0
 public ListableEnumerator(ILazinatorListable<T> list, bool reverse, long skip)
 {
     Started = false;
     Reverse = reverse;
     int skipAdjusted = (int)Math.Min(skip, list.Count);
     Index = reverse ? list.Count - skipAdjusted : skipAdjusted - 1;
     List = list;
 }
Esempio n. 2
0
 private void LazinateUnderlyingList()
 {
     if (LazinatorMemoryStorage.Length == 0)
     {
         _UnderlyingList = null;
     }
     else
     {
         LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _UnderlyingList_ByteIndex, _UnderlyingList_ByteLength, null);
         _UnderlyingList = DeserializationFactory.Instance.CreateBasedOnType <ILazinatorListable <T> >(childData, this);
     }
     _UnderlyingList_Accessed = true;
 }
Esempio n. 3
0
 public LazinatorStack(ILazinatorListable <T> underlyingList)
 {
     UnderlyingList = underlyingList;
 }