DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Resize()

void SimpleCircularBuffer< Class T >::Resize ( int pNewSize,
T pDefaultValue )
inlineprivate

Resize the array and set default value (to new items only)

Аргументы
pNewSizesize of the buffer to change to
pDefaultValueinitial value stored in buffer

См. определение в файле SimpleCircularBuffer.c строка 59

60 {
61 m_Samples.Resize(pNewSize);
62
63 if (pNewSize > m_Size)
64 {
65 for (int i = 0; i < pNewSize - m_Size; ++i)
66 m_Samples.Insert(pDefaultValue);
67 }
68
69 m_Size = pNewSize;
70 }
ref array< T > m_Samples
Определения SimpleCircularBuffer.c:5

Перекрестные ссылки m_Samples и m_Size.