unreadCount property

int unreadCount

Return total number of remaining bytes available to be read

The result will be <= the writeCount amount.

Implementation

int get unreadCount => writeCount - readCount;