internal int AdjustSize(int count, bool isInsert = false) { __cTimes.AdjustSize(count, isInsert); __cOpens.AdjustSize(count, isInsert); __cHighs.AdjustSize(count, isInsert); __cLows.AdjustSize(count, isInsert); __cCloses.AdjustSize(count, isInsert); __cVolumes.AdjustSize(count, isInsert); if (isInsert) //如果是往前插入空間需要調整索引直 { Indexer.AdjustIndex(count); } return((isInsert) ? Indexer.HistoryIndex : Indexer.RealtimeIndex); }
internal int AdjustSize(int count, bool isInsert = false) { int iIndex = 0; lock (__oLock) { __cTimes.AdjustSize(count, isInsert); __cOpens.AdjustSize(count, isInsert); __cHighs.AdjustSize(count, isInsert); __cLows.AdjustSize(count, isInsert); __cCloses.AdjustSize(count, isInsert); __cVolumes.AdjustSize(count, isInsert); if (isInsert) { //如果是往前插入空間需要調整索引直 Indexer.AdjustIndex(count); } iIndex = (isInsert) ? Indexer.HistoryIndex : Indexer.RealtimeIndex; } return iIndex; }