Re: [sqlite] why I can't find the implementation of functions in IoMethod structure?

2006-08-01 Thread Gunnar Roth
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





Re: [sqlite] why I can't find the implementation of functions in IoMethod structure?

2006-08-01 Thread drh
"Sarah" <[EMAIL PROTECTED]> wrote:
> 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? 
> 
> Can anyone help me?

Separate implementions exist in os_unix.c and os_win.c
--
D. Richard Hipp   <[EMAIL PROTECTED]>



[sqlite] why I can't find the implementation of functions in IoMethod structure?

2006-08-01 Thread Sarah
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? 

Can anyone help me?