When in Allocate method , size > m_chunkSize happen, m_currentChunkIndex is -1, then call CreateBlobAssetReference, I can got this IndexOutOfRangeException.
Got a IndexOutOfRangeException in CreateBlobAssetReference of BlobBuilder
Code (CSharp):
- BlobDataRef Allocate(int size, int alignment)
- {
- if (size > m_chunkSize)
- {
- size = CollectionHelper.Align(size, 16);
- var allocIndex = m_allocations.Length;
- var mem = (byte*)Memory.Unmanaged.Allocate(size, alignment, m_allocator);...