To determine the effective length of the buffer.
int pcount() const;
The function pcount() is used to determine the offset of the next character position from the beginning of the buffer.
For an example of strstreambuf::pcount() usage refer to strstreambuf::freeze.