Example #1
0
 private void ResizeIndexStream(int newCap)
 {
     if (indexStream != null)
     {
         indexStream.Resize(newCap);
         Purple.Log.Spam("IndexStream resized: " + newCap * 3);
     }
     else
     {
         indexStream = new IndexStream16(newCap);
     }
 }
Example #2
0
 private void ResizeIndexStream(IndexStream indexStream, int size)
 {
     if (indexStream.Size < size)
     {
         size = System.Math.Max(size, indexStream.Size * 2);
         Purple.Log.Spam("ShadowVolume - Resize index stream from: " + indexStream.Size + " to: " + size);
         indexStream.Resize(size);
     }
 }