Example #1
0
 private static int pcache1MemSize(object p)
 {
     if (p >= pcache1.pStart && p < pcache1.pEnd)
     {
         return(pcache1.szSlot);
     }
     else
     {
         Debug.Assert(SysEx.sqlite3MemdebugHasType(p, SysEx.MEMTYPE.PCACHE));
         SysEx.sqlite3MemdebugSetType(p, SysEx.MEMTYPE.HEAP);
         var iSize = SysEx.sqlite3MallocSize(p);
         SysEx.sqlite3MemdebugSetType(p, SysEx.MEMTYPE.PCACHE);
         return(iSize);
     }
 }