freeBlocks

fun freeBlocks(num: Int): Int

Removes the given number of byte blocks from the buffer if possible.

Return

the number of actually removed buffers

Parameters

num

the number of byte blocks to remove