Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetRecordPos

Retrieve the current record offset position.

Declaration

CTDBRET ctdbGetRecordPos(CTHANDLE Handle, pCTOFFSET pOffset)

Description

ctdbGetRecordPos() retrieves the current record offset position if the table has support to a RECBYT index. When the table is created, by default it includes a RECBYT index. In order to verify if the table has support to a RECBYT index, use ctdbHasRecbyt().

  • Handle [in] the record handle.
  • pOffset [out] receives the current record offset position.

Returns

ctdbGetRecordPos() returns CTDBRET_OK on success, or a c-treeDB API .NET error code on failure

See also

ctdbSetRecordPos(), ctdbSetRecordOffset(), ctdbSeekRecord(), ctdbHasRecbyt(), ctdbCreateTable()

TOCIndex