getNewSize

abstract fun getNewSize(requested: Int, current: Int): Int

Calculate the new size of the ring buffer.

Return

A new size, which should be >= requested.

Parameters

requested

The requested size for this upload.

current

The current buffer size, or 0 if uninitialized.