...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
In the table below, a
denotes
a synchronous random-access write device object, o
denotes an offset of type boost::uint64_t
,
cb
denotes an object satisfying
constant buffer
sequence requirements, and ec
denotes an object of type error_code
.
Table 35. Buffer-oriented synchronous random-access write device requirements
operation |
type |
semantics, pre/post-conditions |
---|---|---|
|
|
Equivalent to: error_code ec; size_t s = a.write_some(o, cb, ec); if (ec) throw system_error(ec); return s;
|
|
|
Writes one or more bytes of data to the device |