std::streamsize - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::streamsize

From cppreference.com
< cpp‎ | io

Defined in header `<ios>` |  |
typedef /*unspecified*/ streamsize; |  |

The type `std::streamsize` is a 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::size_t, similar to the POSIX type `ssize_t`.

Except in the constructors of std::strstreambuf, negative values of `std::streamsize` are never used.

### [edit] See also

gcount | returns number of characters extracted by last unformatted input operation (public member function of `std::basic_istream`) [edit]
ignore | extracts and discards characters until the given character is found (public member function of `std::basic_istream`) [edit]
read | extracts blocks of characters (public member function of `std::basic_istream`) [edit]
write | inserts blocks of characters (public member function of `std::basic_ostream`) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/io/streamsize&oldid=57946"