Home
last modified time | relevance | path

Searched refs:aBuf (Results 1 – 8 of 8) sorted by relevance

/external/icu/icu4c/source/tools/pkgdata/
Dpkgtypes.c213 char aBuf[1024]; in pkg_appendUniqueDirToList() local
229 if((rPtr-strAlias) >= UPRV_LENGTHOF(aBuf)) { in pkg_appendUniqueDirToList()
230 fprintf(stderr, "## ERR: Path too long [%d chars]: %s\n", (int)sizeof(aBuf), strAlias); in pkg_appendUniqueDirToList()
233 strncpy(aBuf, strAlias,(rPtr-strAlias)); in pkg_appendUniqueDirToList()
234 aBuf[rPtr-strAlias]=0; /* no trailing slash */ in pkg_appendUniqueDirToList()
235 convertToNativePathSeparators(aBuf); in pkg_appendUniqueDirToList()
237 if(!pkg_listContains(l, aBuf)) { in pkg_appendUniqueDirToList()
238 return pkg_appendToList(l, end, uprv_strdup(aBuf)); in pkg_appendUniqueDirToList()
/external/rust/crates/libsqlite3-sys/sqlite3/
Dwasm32-wasi-vfs.c415 char *aBuf = 0; in demoOpen() local
422 aBuf = (char *)sqlite3_malloc(SQLITE_DEMOVFS_BUFFERSZ); in demoOpen()
423 if( !aBuf ){ in demoOpen()
436 sqlite3_free(aBuf); in demoOpen()
439 p->aBuffer = aBuf; in demoOpen()
Dsqlite3.c60584 u8 aBuf[WAL_HDRSIZE]; /* Buffer to load WAL header into */
60597 rc = sqlite3OsRead(pWal->pWalFd, aBuf, WAL_HDRSIZE, 0);
60607 magic = sqlite3Get4byte(&aBuf[0]);
60608 szPage = sqlite3Get4byte(&aBuf[8]);
60618 pWal->nCkpt = sqlite3Get4byte(&aBuf[12]);
60619 memcpy(&pWal->hdr.aSalt, &aBuf[16], 8);
60623 aBuf, WAL_HDRSIZE-2*4, 0, pWal->hdr.aFrameCksum
60625 if( pWal->hdr.aFrameCksum[0]!=sqlite3Get4byte(&aBuf[24])
60626 || pWal->hdr.aFrameCksum[1]!=sqlite3Get4byte(&aBuf[28])
60633 version = sqlite3Get4byte(&aBuf[4]);
[all …]
/external/dng_sdk/source/
Ddng_string.cpp147 dng_memory_data aBuf (aBufSize + 1); in Assign_Multibyte() local
178 (UniChar *) aBuf.Buffer ()); in Assign_Multibyte()
185 char *aBufChar = aBuf.Buffer_char (); in Assign_Multibyte()
363 dng_memory_data aBuf ((aBufChars + 1) << 1); in Assign_Multibyte() local
369 (WCHAR *) aBuf.Buffer (), in Assign_Multibyte()
375 uint16 * aUTF16 = aBuf.Buffer_uint16 (); in Assign_Multibyte()
/external/sqlite/dist/
Dshell.c2863 char *aBuf = aStatic; in fsdirColumn() local
2868 n = readlink(pCur->zPath, aBuf, nBuf); in fsdirColumn()
2870 if( aBuf!=aStatic ) sqlite3_free(aBuf); in fsdirColumn()
2872 aBuf = sqlite3_malloc64(nBuf); in fsdirColumn()
2873 if( aBuf==0 ){ in fsdirColumn()
2879 sqlite3_result_text(ctx, aBuf, n, SQLITE_TRANSIENT); in fsdirColumn()
2880 if( aBuf!=aStatic ) sqlite3_free(aBuf); in fsdirColumn()
4928 static u16 zipfileGetU16(const u8 *aBuf){ in zipfileGetU16() argument
4929 return (aBuf[1] << 8) + aBuf[0]; in zipfileGetU16()
4935 static u32 zipfileGetU32(const u8 *aBuf){ in zipfileGetU32() argument
[all …]
Dsqlite3.c60519 u8 aBuf[WAL_HDRSIZE]; /* Buffer to load WAL header into */
60531 rc = sqlite3OsRead(pWal->pWalFd, aBuf, WAL_HDRSIZE, 0);
60541 magic = sqlite3Get4byte(&aBuf[0]);
60542 szPage = sqlite3Get4byte(&aBuf[8]);
60552 pWal->nCkpt = sqlite3Get4byte(&aBuf[12]);
60553 memcpy(&pWal->hdr.aSalt, &aBuf[16], 8);
60557 aBuf, WAL_HDRSIZE-2*4, 0, pWal->hdr.aFrameCksum
60559 if( pWal->hdr.aFrameCksum[0]!=sqlite3Get4byte(&aBuf[24])
60560 || pWal->hdr.aFrameCksum[1]!=sqlite3Get4byte(&aBuf[28])
60567 version = sqlite3Get4byte(&aBuf[4]);
[all …]
/external/sqlite/dist/orig/
Dshell.c2858 char *aBuf = aStatic; in fsdirColumn() local
2863 n = readlink(pCur->zPath, aBuf, nBuf); in fsdirColumn()
2865 if( aBuf!=aStatic ) sqlite3_free(aBuf); in fsdirColumn()
2867 aBuf = sqlite3_malloc64(nBuf); in fsdirColumn()
2868 if( aBuf==0 ){ in fsdirColumn()
2874 sqlite3_result_text(ctx, aBuf, n, SQLITE_TRANSIENT); in fsdirColumn()
2875 if( aBuf!=aStatic ) sqlite3_free(aBuf); in fsdirColumn()
4923 static u16 zipfileGetU16(const u8 *aBuf){ in zipfileGetU16() argument
4924 return (aBuf[1] << 8) + aBuf[0]; in zipfileGetU16()
4930 static u32 zipfileGetU32(const u8 *aBuf){ in zipfileGetU32() argument
[all …]
Dsqlite3.c60503 u8 aBuf[WAL_HDRSIZE]; /* Buffer to load WAL header into */
60515 rc = sqlite3OsRead(pWal->pWalFd, aBuf, WAL_HDRSIZE, 0);
60525 magic = sqlite3Get4byte(&aBuf[0]);
60526 szPage = sqlite3Get4byte(&aBuf[8]);
60536 pWal->nCkpt = sqlite3Get4byte(&aBuf[12]);
60537 memcpy(&pWal->hdr.aSalt, &aBuf[16], 8);
60541 aBuf, WAL_HDRSIZE-2*4, 0, pWal->hdr.aFrameCksum
60543 if( pWal->hdr.aFrameCksum[0]!=sqlite3Get4byte(&aBuf[24])
60544 || pWal->hdr.aFrameCksum[1]!=sqlite3Get4byte(&aBuf[28])
60551 version = sqlite3Get4byte(&aBuf[4]);
[all …]