Lines Matching refs:sz
275 void sqlite3PCacheBufferSetup(void *pBuf, int sz, int n){ in sqlite3PCacheBufferSetup() argument
278 if( pBuf==0 ) sz = n = 0; in sqlite3PCacheBufferSetup()
279 if( n==0 ) sz = 0; in sqlite3PCacheBufferSetup()
280 sz = ROUNDDOWN8(sz); in sqlite3PCacheBufferSetup()
281 pcache1.szSlot = sz; in sqlite3PCacheBufferSetup()
291 pBuf = (void*)&((char*)pBuf)[sz]; in sqlite3PCacheBufferSetup()
367 int sz = sqlite3MallocSize(p); in pcache1Alloc() local
370 sqlite3StatusUp(SQLITE_STATUS_PAGECACHE_OVERFLOW, sz); in pcache1Alloc()
491 void *sqlite3PageMalloc(int sz){ in sqlite3PageMalloc() argument
492 assert( sz<=65536+8 ); /* These allocations are never very large */ in sqlite3PageMalloc()
493 return pcache1Alloc(sz); in sqlite3PageMalloc()
767 int sz; /* Bytes of memory required to allocate the new cache */ in pcache1Create() local
772 sz = sizeof(PCache1) + sizeof(PGroup)*pcache1.separateCache; in pcache1Create()
773 pCache = (PCache1 *)sqlite3MallocZero(sz); in pcache1Create()