Example #1
0
error statement::bind_by_name_n(char const *name,
        size_t name_length, bytes_view value)
{
    return error(::cass_statement_bind_bytes_by_name_n(
                backend(), name, name_length, (cass_byte_t const *)value.data(),
                value.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
 REDEMPTION_CXX_NODISCARD
 Read atomic_read(bytes_view buffer)
 {
     return this->do_atomic_read(buffer.to_u8p(), buffer.size());
 }
Example #4
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);
     }
 }
Example #5
0
error statement::bind(size_t index, bytes_view value)
{
    return error(::cass_statement_bind_bytes(backend(), index,
                (cass_byte_t const *)value.data(), value.size()));
}