Searched refs:bytesToWrite (Results 1 – 5 of 5) sorted by relevance
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | ConvertUTF.cpp | 255 unsigned short bytesToWrite = 0; in ConvertUTF16toUTF8() local 289 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF16toUTF8() 290 } else if (ch < (UTF32)0x800) { bytesToWrite = 2; in ConvertUTF16toUTF8() 291 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; in ConvertUTF16toUTF8() 292 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4; in ConvertUTF16toUTF8() 293 } else { bytesToWrite = 3; in ConvertUTF16toUTF8() 297 target += bytesToWrite; in ConvertUTF16toUTF8() 300 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF16toUTF8() 302 switch (bytesToWrite) { /* note: everything falls through. */ in ConvertUTF16toUTF8() 306 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8() [all …]
|
/netbsd-src/crypto/external/cpl/tpm-tools/dist/src/tpm_mgmt/ |
H A D | tpm_nvwrite.c | 142 UINT32 ulDataLength, bytesToWrite, off; in main() local 328 bytesToWrite = ulDataLength; in main() 331 if (bytesToWrite == 0 && in main() 336 while (bytesToWrite > 0) { in main() 337 UINT32 chunk = (bytesToWrite > WRITE_CHUNK_SIZE) in main() 339 : bytesToWrite; in main() 344 bytesToWrite -= chunk; in main()
|
H A D | tpm_createek.c | 124 static int writeData(UINT32 bytesToWrite, BYTE *buffer) in writeData() argument 130 logDebug(_("bytesToWrite: %d\n"), bytesToWrite); in writeData() 138 iBytes = fwrite( buffer, 1, bytesToWrite, outfile); in writeData() 139 if ( iBytes != bytesToWrite ) { in writeData() 141 bytesToWrite, out_filename); in writeData()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/ |
H A D | LiteralSupport.cpp | 438 unsigned short bytesToWrite = 0; in EncodeUCNEscape() local 440 bytesToWrite = 1; in EncodeUCNEscape() 442 bytesToWrite = 2; in EncodeUCNEscape() 444 bytesToWrite = 3; in EncodeUCNEscape() 446 bytesToWrite = 4; in EncodeUCNEscape() 457 ResultBuf += bytesToWrite; in EncodeUCNEscape() 458 switch (bytesToWrite) { // note: everything falls through. in EncodeUCNEscape() 469 *--ResultBuf = (UTF8) (UcnVal | firstByteMark[bytesToWrite]); in EncodeUCNEscape() 472 ResultBuf += bytesToWrite; in EncodeUCNEscape()
|
/netbsd-src/external/mit/expat/dist/lib/ |
H A D | xmlparse.c | 750 const size_t bytesToWrite = count - bytesWrittenTotal; in writeRandomBytes_getrandom_nonblock() local 754 getrandom(currentTarget, bytesToWrite, getrandomFlags); in writeRandomBytes_getrandom_nonblock() 756 syscall(SYS_getrandom, currentTarget, bytesToWrite, getrandomFlags); in writeRandomBytes_getrandom_nonblock() 786 const size_t bytesToWrite = count - bytesWrittenTotal; in writeRandomBytes_dev_urandom() local 788 const ssize_t bytesWrittenMore = read(fd, currentTarget, bytesToWrite); in writeRandomBytes_dev_urandom()
|