Lines Matching refs:nBuf

23821 static int getTempname(int nBuf, char *zBuf ){
23864 sqlite3_snprintf(nBuf-22, zBuf,
24139 static void os2DlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
24168 ** Write up to nBuf bytes of randomness into zBuf.
24170 static int os2Randomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf ){
24173 n = nBuf;
24174 memset(zBuf, 0, nBuf);
24187 if( (int)sizeof(dt)-3 <= nBuf - n ){
24196 if( (int)sizeof(ULONG) <= nBuf - n ){
24204 for( i = 0; i < 6 && (int)sizeof(ULONG) <= nBuf - n; i++ ){
24301 ** a buffer of nBuf bytes. The OS layer should populate the
24317 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
24326 static int os2GetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
29320 static int unixGetTempname(int nBuf, char *zBuf){
29340 if( (strlen(zDir) + strlen(SQLITE_TEMP_FILE_PREFIX) + 17) >= (size_t)nBuf ){
29345 sqlite3_snprintf(nBuf-17, zBuf, "%s/"SQLITE_TEMP_FILE_PREFIX, zDir);
29873 static void unixDlError(sqlite3_vfs *NotUsed, int nBuf, char *zBufOut){
29879 sqlite3_snprintf(nBuf, zBufOut, "%s", zErr);
29918 ** Write nBuf bytes of random data to the supplied buffer zBuf.
29920 static int unixRandomness(sqlite3_vfs *NotUsed, int nBuf, char *zBuf){
29922 assert((size_t)nBuf>=(sizeof(time_t)+sizeof(int)));
29936 memset(zBuf, 0, nBuf);
29947 assert( sizeof(t)+sizeof(pid)<=(size_t)nBuf );
29948 nBuf = sizeof(t) + sizeof(pid);
29950 do{ nBuf = osRead(fd, zBuf, nBuf); }while( nBuf<0 && errno==EINTR );
29955 return nBuf;
32121 static int getLastErrorMsg(int nBuf, char *zBuf){
32168 sqlite3_snprintf(nBuf, zBuf, "OsError 0x%x (%u)", error, error);
32170 /* copy a maximum of nBuf chars to output buffer */
32171 sqlite3_snprintf(nBuf, zBuf, "%s", zOut);
33935 static int getTempname(int nBuf, char *zBuf){
33984 if( (sqlite3Strlen30(zTempPath) + sqlite3Strlen30(SQLITE_TEMP_FILE_PREFIX) + 17) >= nBuf ){
33991 sqlite3_snprintf(nBuf-17, zBuf,
34540 static void winDlError(sqlite3_vfs *pVfs, int nBuf, char *zBufOut){
34542 getLastErrorMsg(nBuf, zBufOut);
34568 ** Write up to nBuf bytes of randomness into zBuf.
34570 static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
34574 n = nBuf;
34575 memset(zBuf, 0, nBuf);
34577 if( sizeof(SYSTEMTIME)<=nBuf-n ){
34583 if( sizeof(DWORD)<=nBuf-n ){
34588 if( sizeof(DWORD)<=nBuf-n ){
34593 if( sizeof(LARGE_INTEGER)<=nBuf-n ){
34688 ** a buffer of nBuf bytes. The OS layer should populate the
34704 ** int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
34713 static int winGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
34715 return getLastErrorMsg(nBuf, zBuf);
37531 int nBuf, /* Size of buffer nBuf */
46159 int nBuf,
46160 u8 *zBuf /* Buffer of at least nBuf bytes */
46181 pWal, SQLITE_CHECKPOINT_PASSIVE, 0, 0, sync_flags, nBuf, zBuf, 0, 0
47157 int nBuf, /* Size of temporary buffer */
47206 if( pWal->hdr.mxFrame && walPagesize(pWal)!=nBuf ){
60979 ** nBuf is the amount of space left in buf[]. nBuf must always be
60992 SQLITE_PRIVATE u32 sqlite3VdbeSerialPut(u8 *buf, int nBuf, Mem *pMem, int file_format){
61008 assert( len<=(u32)nBuf );
61020 assert( pMem->n<=nBuf );
61025 assert( nBuf>=0 );
61026 if( len > (u32)nBuf ){
61027 len = (u32)nBuf;
63352 ** into buffer zBuf, length nBuf.
71198 int nBuf; /* Size of zBuf[] in bytes */
71220 assert(p->iSize<=p->nBuf);
71272 if( !p->pReal && (iOfst+iAmt)>p->nBuf ){
71361 int nBuf /* Bytes buffered before opening the file */
71365 if( nBuf>0 ){
71366 p->zBuf = sqlite3MallocZero(nBuf);
71374 p->nBuf = nBuf;
125031 int nBuf /* size of the BLOB */
125034 UNUSED_PARAMETER(nBuf);
125038 assert(j<=nBuf);