cpp/io/streamsize

The type is an implementation-defined signed integral type used to represent the number of characters transferred in an I/O operation or the size of an I/O buffer. It is used as a signed counterpart of std, similar to the POSIX type.

Except in the constructors of std, negative values of are never used.