[−][src]Function eosio_cdt_sys::db_idx256_find_secondary
pub unsafe extern "C" fn db_idx256_find_secondary(
code: capi_name,
scope: u64,
table: capi_name,
data: *const uint128_t,
data_len: u32,
primary: *mut u64
) -> i32
Find a table row in a secondary 256-bit index table by secondary key
@brief Find a table row in a secondary 256-bit index table by secondary 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 secondary key data (which is stored as an array of 2 uint128_t
integers) used to lookup the table row
@param data_len - Must be set to 2
@param primary - Pointer to a uint64_t
variable which will have its value set to the primary key of the found table row
@post If and only if the table row is found, *primary
will be replaced with the primary key of the found table row
@return iterator to the first table row with a secondary key equal to the specified secondary key or the end iterator of the table if the table row could not be found