// assert( sizeof(u64)==8 || sizeof(u64)==4 );
// assert( sizeof(u32)==4 );
// assert( sizeof(u16)==2 );
// assert( sizeof(Pgno)==4 );
pBt = new SqlJetBtreeShared();
pBt.pPager = new SqlJetPager();
pBt.pPager.open(pVfs, filename, SqlJetBtreeFlags.toPagerFlags(flags), type, permissions);
pBt.pPager.readFileHeader(zDbHeader.remaining(), zDbHeader);
pBt.pPager.setBusyhandler(new ISqlJetBusyHandler() {
public boolean call(int number) {
return invokeBusyHandler(number);