unwrittenCount property

int unwrittenCount

Return the number of bytes the buffer still has available for writing.

The result will be difference between the writeCount region of the buffer and the length.

Implementation

int get unwrittenCount => length - writeCount;