Lines Matching defs:nBuf

24256 static int getTempname(int nBuf, char *zBuf ){
24299 sqlite3_snprintf(nBuf-22, zBuf,
24574 static void os2DlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
24603 ** Write up to nBuf bytes of randomness into zBuf.
24605 static int os2Randomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf ){
24608 n = nBuf;
24609 memset(zBuf, 0, nBuf);
24622 if( (int)sizeof(dt)-3 <= nBuf - n ){
24631 if( (int)sizeof(ULONG) <= nBuf - n ){
24639 for( i = 0; i < 6 && (int)sizeof(ULONG) <= nBuf - n; i++ ){
24736 ** a buffer of nBuf bytes. The OS layer should populate the
24752 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
24761 static int os2GetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
29826 static int unixGetTempname(int nBuf, char *zBuf){
29846 if( (strlen(zDir) + strlen(SQLITE_TEMP_FILE_PREFIX) + 18) >= (size_t)nBuf ){
29851 sqlite3_snprintf(nBuf-18, zBuf, "%s/"SQLITE_TEMP_FILE_PREFIX, zDir);
30422 static void unixDlError(sqlite3_vfs *NotUsed, int nBuf, char *zBufOut){
30428 sqlite3_snprintf(nBuf, zBufOut, "%s", zErr);
30467 ** Write nBuf bytes of random data to the supplied buffer zBuf.
30469 static int unixRandomness(sqlite3_vfs *NotUsed, int nBuf, char *zBuf){
30471 assert((size_t)nBuf>=(sizeof(time_t)+sizeof(int)));
30485 memset(zBuf, 0, nBuf);
30496 assert( sizeof(t)+sizeof(pid)<=(size_t)nBuf );
30497 nBuf = sizeof(t) + sizeof(pid);
30499 do{ got = osRead(fd, zBuf, nBuf); }while( got<0 && errno==EINTR );
30504 return nBuf;
33171 static int getLastErrorMsg(DWORD lastErrno, int nBuf, char *zBuf){
33225 sqlite3_snprintf(nBuf, zBuf, "OsError 0x%x (%u)", lastErrno, lastErrno);
33227 /* copy a maximum of nBuf chars to output buffer */
33228 sqlite3_snprintf(nBuf, zBuf, "%s", zOut);
35038 static int getTempname(int nBuf, char *zBuf){
35087 if( (sqlite3Strlen30(zTempPath) + sqlite3Strlen30(SQLITE_TEMP_FILE_PREFIX) + 18) >= nBuf ){
35094 sqlite3_snprintf(nBuf-18, zBuf,
35590 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
35592 getLastErrorMsg(osGetLastError(), nBuf, zBufOut);
35611 ** Write up to nBuf bytes of randomness into zBuf.
35613 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
35617 n = nBuf;
35618 memset(zBuf, 0, nBuf);
35620 if( sizeof(SYSTEMTIME)<=nBuf-n ){
35626 if( sizeof(DWORD)<=nBuf-n ){
35631 if( sizeof(DWORD)<=nBuf-n ){
35636 if( sizeof(LARGE_INTEGER)<=nBuf-n ){
35732 ** a buffer of nBuf bytes. The OS layer should populate the
35748 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
35757 static int winGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
35759 return getLastErrorMsg(osGetLastError(), nBuf, zBuf);
38414 int nBuf, /* Size of buffer nBuf */
47154 int nBuf,
47155 u8 *zBuf /* Buffer of at least nBuf bytes */
47175 pWal, SQLITE_CHECKPOINT_PASSIVE, 0, 0, sync_flags, nBuf, zBuf, 0, 0
48240 int nBuf, /* Size of temporary buffer */
48289 if( pWal->hdr.mxFrame && walPagesize(pWal)!=nBuf ){
62194 ** nBuf is the amount of space left in buf[]. nBuf must always be
62207 SQLITE_PRIVATE u32 sqlite3VdbeSerialPut(u8 *buf, int nBuf, Mem *pMem, int file_format){
62223 assert( len<=(u32)nBuf );
62235 assert( pMem->n<=nBuf );
62240 assert( nBuf>=0 );
62241 if( len > (u32)nBuf ){
62242 len = (u32)nBuf;
64674 ** into buffer zBuf, length nBuf.
72564 int nBuf; /* Size of zBuf[] in bytes */
72586 assert(p->iSize<=p->nBuf);
72638 if( !p->pReal && (iOfst+iAmt)>p->nBuf ){
72727 int nBuf /* Bytes buffered before opening the file */
72731 if( nBuf>0 ){
72732 p->zBuf = sqlite3MallocZero(nBuf);
72740 p->nBuf = nBuf;
127990 int nBuf /* size of the BLOB */
127993 UNUSED_PARAMETER(nBuf);
127997 assert(j<=nBuf);