Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbSetRecordPos

Set the current record offset position.

Declaration

CTDBRET ctdbSetRecordPos(CTHANDLE Handle, CTOFFSET offset)

Description

ctdbSetRecordPos() sets the current record position. The record buffer is not updated. Follow the ctdbSetRecordPos() with a call to ctdbReadRecord() to update the record buffer.

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

Returns

ctdbSetRecordPos() returns CTDBRET_OK on success, or a c-treeDB API C API error code on failure

See also

ctdbSetRecordOffset(), ctdbReadRecord(), ctdbSeekRecord(), ctdbGetRecordPos(), ctdbSetRecordBuffer()

TOCIndex