}// sizeof( PCache ); } /* ** Create a new PCache object. Storage space to hold the object ** has already been allocated and is passed in as the p pointer. ** The caller discovers how much space needs to be allocated by ** calling sqlite3PcacheSize(). */ static void sqlite3PcacheOpen( int szPage, /* Size of every page */ int szExtra, /* Extra space associated with each page */ bool bPurgeable, /* True if pages are on backing store */ dxStress xStress, //int (*xStress)(void*,PgHdr*),/* Call to try to make pages clean */ object pStress, /* Argument to xStress */ PCache p /* Preallocated space for the PCache */ ) { p.Clear();//memset(p, 0, sizeof(PCache)); p.szPage = szPage; p.szExtra = szExtra; p.bPurgeable = bPurgeable; p.xStress = xStress; p.pStress = pStress; p.nMax = 100; }
}// sizeof( PCache ); } /* ** Create a new PCache object. Storage space to hold the object ** has already been allocated and is passed in as the p pointer. ** The caller discovers how much space needs to be allocated by ** calling sqlite3PcacheSize(). */ static void sqlite3PcacheOpen( int szPage, /* Size of every page */ int szExtra, /* Extra space associated with each page */ bool bPurgeable, /* True if pages are on backing store */ dxStress xStress,//int (*xStress)(void*,PgHdr*),/* Call to try to make pages clean */ object pStress, /* Argument to xStress */ PCache p /* Preallocated space for the PCache */ ) { p.Clear();//memset(p, 0, sizeof(PCache)); p.szPage = szPage; p.szExtra = szExtra; p.bPurgeable = bPurgeable; p.xStress = xStress; p.pStress = pStress; p.nMax = 100; }