Previous Topic

Next Topic

OT_GETDK

Intercept c-tree Plus data record just after read from disk

ctCONV COUNT ctDECL OT_GETDK(pSchema)

pCTREE_SCHEMA pSchema;
 /* Pointer to current c-tree Plus ODBC schema info */

This function is called just after a successful read from disk of a c-tree Plus record. It provides a means for you to intercept the c-tree Plus record just after the read, and before it is processed by the c-tree Driver. This function should only be implemented by advanced c-tree Plus users with caution. See the CTREE_SCHEMA definition below for the information provided to you by pSchema.

typedef struct {
pDATOBJ pDatObj;    /* Pointer to DODA                                        */
pVOID   pBuffer;    /* Pointer to record buffer going to disk                 */
VRLEN   bufferSize; /* Total size of record buffer-amount allocated           */
VRLEN   dodaSize;   /* size of the doda                                       */
UINT    align;      /* alignment adjustment factor                            */
NINT    delimiter;  /* field delimiter character from file's header           */
NINT    padding;    /* field padding character from file's header             */
UINT    nfields;    /* number of fields in record (in DODA)                   */
UCOUNT  vlength;    /* byte offset of variable record portion- 0=fixed length */
VRLEN   UsedbufferSize;
                    /* Used size of record buffer for variable length records */
NINT    lastfield;  /* last field updated for current record                  */
pVOID   pUsrData;   /* User data pointer                                      */
} CTREE_SCHEMA, ctMEM *pCTREE_SCHEMA,
  ctMEM * ctMEM *ppCTREE_SCHEMA;