freeBlocks
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
Removes the given number of byte blocks from the buffer if possible.
the number of actually removed buffers
the number of byte blocks to remove