Example #1
0
 REDEMPTION_CXX_NODISCARD
 Read atomic_read(bytes_view buffer)
 {
     return this->do_atomic_read(buffer.to_u8p(), buffer.size());
 }
Example #2
0
 // TODO returns bytes_view
 REDEMPTION_CXX_NODISCARD
 size_t partial_read(bytes_view buffer)
 {
     return this->do_partial_read(buffer.to_u8p(), buffer.size());
 }
Example #3
0
 void recv_boom(bytes_view buffer)
 {
     if (Read::Eof == this->atomic_read(buffer.to_u8p(), buffer.size())) {
         throw Error(ERR_TRANSPORT_NO_MORE_DATA);
     }
 }