Sarah schrieb:
> Why I can't find the implementation of functions(xClose, xRead, xWrite, 
> xSeek....) in IoMethod in the whole SQLite project?
>
> Are these functions implemented in OS level? 
>
>   
Of course, where did you expect these os specific function
implementation to be?

static const IoMethod sqlite3WinIoMethod = {
winClose,
winOpenDirectory,
winRead,
winWrite,
winSeek,
winTruncate,
winSync,
winSetFullSync,
winFileHandle,
winFileSize,
winLock,
winUnlock,
winLockState,
winCheckReservedLock,
};
in os_win.c for example.

allocateWinFile sets this table to IOFile.pMethod.

regards,
gunnar



Reply via email to