Exemplo n.º 1
0
 static void sqlite3pager_sqlite3PagerSetCodec(
     Pager pPager,
     dxCodec xCodec,
     dxCodecSizeChng xCodecSizeChng,
     dxCodecFree xCodecFree,
     codec_ctx pCodec
     )
 {
     sqlite3PagerSetCodec(pPager, xCodec, xCodecSizeChng, xCodecFree, pCodec);
 }
Exemplo n.º 2
0
 static void sqlite3pager_sqlite3PagerSetCodec(
 Pager pPager,
 dxCodec xCodec,
 dxCodecSizeChng xCodecSizeChng,
 dxCodecFree xCodecFree,
 codec_ctx pCodec
 )
 {
   sqlite3PagerSetCodec( pPager, xCodec, xCodecSizeChng, xCodecFree, pCodec );
 }
Exemplo n.º 3
0
/*
** Set or retrieve the codec for this pager
*/
    static void sqlite3PagerSetCodec(
    Pager pPager,
    dxCodec xCodec,                 //void *(*xCodec)(void*,void*,Pgno,int),
    dxCodecSizeChng xCodecSizeChng, //void (*xCodecSizeChng)(void*,int,int),
    dxCodecFree xCodecFree,         //void (*xCodecFree)(void*),
    codec_ctx pCodec
    )
    {
      if ( pPager.xCodecFree != null ) pPager.xCodecFree( ref pPager.pCodec );
      pPager.xCodec = (pPager.memDb!=0) ? null : xCodec;
      pPager.xCodecSizeChng = xCodecSizeChng;
      pPager.xCodecFree = xCodecFree;
      pPager.pCodec = pCodec;
      pagerReportSize( pPager );
    }