Find indirect indices for an object¶
ss_table_indirect
is a function defined in sstable.c.
Synopsis:
-
size_t
ss_table_indirect
(ss_table_t *table, size_t idx, size_t beyond)¶
Formal Arguments:
table
: Table in whichidx
existsidx
: Index for the object for which we are searching for an indirect index. This is usually a direct index but doesn’t necessarily have to be such.beyond
: Return an indirect index greater than this value. A value of zero means to return the first indirect index. This argument can be used to scan through a table looking for all matching indirect indices for a particular direct index. If this is a direct index (such as zero) then the first matching indirect index is returned.
Description: Given a direct index for a table object, return the first indirect index which also points to the object and
which is larger than beyond
.
Return Value: Returns a matching indirect index on success; SS_NOSIZE
on failure.
Parallel Notes: Independent
See Also:
- Persistent Object Tables: Introduction for current chapter