[−][src]Function eosio_cdt_sys::db_idx256_find_primary
pub unsafe extern "C" fn db_idx256_find_primary(
code: capi_name,
scope: u64,
table: capi_name,
data: *mut uint128_t,
data_len: u32,
primary: u64
) -> i32
Find a table row in a secondary 256-bit index table by primary key
@brief Find a table row in a secondary 128-bit integer index table by primary key
@param code - The name of the owner of the table
@param scope - The scope where the table resides
@param table - The table name
@param data - Pointer to the an array of 2 uint128_t
integers which will act as the buffer to hold the retrieved secondary key of the found table row
@param data_len - Must be set to 2
@param primary - The primary key of the table row to look up
@post If and only if the table row is found, the buffer pointed to by data
will be filled with the secondary key of the found table row
@return iterator to the table row with a primary key equal to id
or the end iterator of the table if the table row could not be found