public dxShmUnmap xShmUnmap;//int (*xShmUnmap)(sqlite3_file*, int deleteFlag); /* Additional methods may be added in future releases */ public sqlite3_io_methods( int iVersion, dxClose xClose, dxRead xRead, dxWrite xWrite, dxTruncate xTruncate, dxSync xSync, dxFileSize xFileSize, dxLock xLock, dxUnlock xUnlock, dxCheckReservedLock xCheckReservedLock, dxFileControl xFileControl, dxSectorSize xSectorSize, dxDeviceCharacteristics xDeviceCharacteristics, dxShmMap xShmMap, dxShmLock xShmLock, dxShmBarrier xShmBarrier, dxShmUnmap xShmUnmap ) { this.iVersion = iVersion; this.xClose = xClose; this.xRead = xRead; this.xWrite = xWrite; this.xTruncate = xTruncate; this.xSync = xSync; this.xFileSize = xFileSize; this.xLock = xLock; this.xUnlock = xUnlock; this.xCheckReservedLock = xCheckReservedLock; this.xFileControl = xFileControl; this.xSectorSize = xSectorSize; this.xDeviceCharacteristics = xDeviceCharacteristics; this.xShmMap = xShmMap; this.xShmLock = xShmLock; this.xShmBarrier = xShmBarrier; this.xShmUnmap = xShmUnmap; }
static int sqlite3OsSectorSize(sqlite3_file id) { dxSectorSize xSectorSize = id.pMethods.xSectorSize; return(xSectorSize != null ? xSectorSize(id) : SQLITE_DEFAULT_SECTOR_SIZE); }