Returns true if there are any data to read. false means end of the stream.
Attempts to read count bytes from stream and stores them in memory pointing by buffer. Returns number of bytes actually read
Attempts to fill an array with raw data from stream. Returns true if the array was filled, false otherwise
Reads little-endian integer, converts to native-endian and stores in value
Reads big-endian integer, converts to native-endian and stores in value
Implementation-specific method. Usually it writes any unwritten data from output buffer
Returns true if stream can be written to, false otherwise
Attempts to write count bytes from the memory pointed by buffer. Returns number of bytes actually written
Attempts to write an array. Returns true if all elements were written, false otherwise
Attempts to write a string as zero-terminated. Returns true if entire string was written, false otherwise
Writes an integer in little-endian encoding
Writes an integer in big-endian encoding
A stream that allows both reading and writing data