using bstream = basic_bstream< char >Alias to basic_bstream<char>.
template <class Ch, class Tr = std::char_traits<Ch>, class Size = u32> class sys::basic_bstream
Input/output stream that reads/writes everything in binary format with network byte order.
using string_type = std::basic_string< Ch, Tr >String type used for input and output.
using streambuf_type = std::basic_streambuf< Ch, Tr >Stream buffer type.
using size_type = SizeSize type (defaults to 4-byte integer).
using traits_type = TrCharacter traits type.
using char_type = ChCharacter type.
read(char_type * buf, std::streamsize n) -> basic_bstream &
Get n bytes from binary stream and store them in byte buffer pointed by buf.
write(const char_type * buf, std::streamsize n) -> basic_bstream &
Put n bytes from byte buffer pointed by buf to binary stream.
template <class T> operator>>(sys::bytes< T, Ch > & rhs) -> basic_bstream &Get operator for sys::bytes.
template <class T> operator<<(const sys::bytes< T, Ch > & rhs) -> basic_bstream &Insert operator for sys::bytes.
operator>>(bool & rhs) -> basic_bstream &Get operator for standard type.
operator<<(bool rhs) -> basic_bstream &Insert operator for standard type.
flush() -> voidSynchronise both input and output buffers.
sync() -> voidSynchronise both input and output buffers.
rdbuf(streambuf_type * rhs) -> streambuf_type *
Set stream buffer to rhs.
rdbuf() const -> const streambuf_type *Get stream buffer.
rdbuf() -> streambuf_type *Get stream buffer.
~basic_bstream()operator=(basic_bstream &&) -> basic_bstream &operator=(const basic_bstream &) -> basic_bstream &basic_bstream(const basic_bstream &)basic_bstream(basic_bstream && rhs)Move-constructor.
basic_bstream(streambuf_type * buf)explicit
Construct binary stream for stream buffer buf.
basic_bstream()operator>>(string_type & rhs) -> basic_bstream &operator<<(string_type rhs) -> basic_bstream &operator>>(f64 & rhs) -> basic_bstream &operator<<(f64 rhs) -> basic_bstream &operator>>(f32 & rhs) -> basic_bstream &operator<<(f32 rhs) -> basic_bstream &operator>>(u64 & rhs) -> basic_bstream &operator<<(u64 rhs) -> basic_bstream &operator>>(u32 & rhs) -> basic_bstream &operator<<(u32 rhs) -> basic_bstream &operator>>(u16 & rhs) -> basic_bstream &operator<<(u16 rhs) -> basic_bstream &operator>>(u8 & rhs) -> basic_bstream &operator<<(u8 rhs) -> basic_bstream &operator>>(i64 & rhs) -> basic_bstream &operator<<(i64 rhs) -> basic_bstream &operator>>(i32 & rhs) -> basic_bstream &operator<<(i32 rhs) -> basic_bstream &operator>>(i16 & rhs) -> basic_bstream &operator<<(i16 rhs) -> basic_bstream &operator>>(i8 & rhs) -> basic_bstream &operator<<(i8 rhs) -> basic_bstream &operator>>(char & rhs) -> basic_bstream &operator<<(char rhs) -> basic_bstream &