These docs are for v1.3.0. Click to read the latest docs for v1.6.

db_idx256_store

Store a record's secondary index in a secondary 256-bit integer index table.

Store a record's secondary index in a secondary 256-bit integer index table

Parameters

  • scope - The scope where the secondary index will be stored
  • table - The table name where the secondary index will be stored
  • payer - The account that is paying for this storage
  • id - The primary key of the record which secondary index to be stored
  • data - The pointer to the key of the secondary index to store
  • data_len - Size of the key of the secondary index to store

Returns

iterator to the newly created secondary index

Precondition

data is pointing to range of memory at least data_len bytes long

Post Condition

new secondary index is created