
The function now fails if it fails to insert all layers because the array overflowed. Previously this would silently corrupt the heap.
The function now fails if it fails to insert all layers because the array overflowed. Previously this would silently corrupt the heap.