Example #1
0
error value::get(bytes_view *output) const
{
    cass_byte_t const *output_s = nullptr;
    size_t size = 0;
    ::CassError res = ::cass_value_get_bytes(backend(), &output_s, &size);
    if (res == ::CASS_OK)
        *output = bytes_view((std::byte const *)output_s, size);
    return (error)res;
}
Example #2
0
bytes_view SQLiteDb::SQLiteStmt::GetColBlob(int Col) const
{
	return bytes_view(sqlite::sqlite3_column_blob(m_Stmt.get(), Col), sqlite::sqlite3_column_bytes(m_Stmt.get(), Col));
}