Home
last modified time | relevance | path

Searched refs:bytesToWrite (Results 1 – 10 of 10) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DConvertUTF.cpp255 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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DConvertUTF.cpp229 unsigned short bytesToWrite = 0; in ConvertUTF16toUTF8() local
263 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF16toUTF8()
264 } else if (ch < (UTF32)0x800) { bytesToWrite = 2; in ConvertUTF16toUTF8()
265 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; in ConvertUTF16toUTF8()
266 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4; in ConvertUTF16toUTF8()
267 } else { bytesToWrite = 3; in ConvertUTF16toUTF8()
271 target += bytesToWrite; in ConvertUTF16toUTF8()
274 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF16toUTF8()
276 switch (bytesToWrite) { /* note: everything falls through. */ in ConvertUTF16toUTF8()
280 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
[all …]
/third_party/skia/third_party/externals/oboe/samples/LiveEffect/src/main/cpp/
DFullDuplexPass.h27 size_t bytesToWrite = numInputFrames * bytesPerFrame; in onBothStreamsReady() local
30 memcpy(outputData, inputData, bytesToWrite); in onBothStreamsReady()
31 memset((u_char*) outputData + bytesToWrite, 0, bytesToZero); in onBothStreamsReady()
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/common/
Dos.cpp269 DWORD bytesToWrite = static_cast<DWORD>(pOptStdIn->size()) - bytesWritten; in ExecCmd() local
272 bytesToWrite, in ExecCmd()
273 &bytesToWrite, in ExecCmd()
279 bytesWritten += bytesToWrite; in ExecCmd()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/audio/
DFFMpegExtractor.cpp287 int64_t bytesToWrite = frame_count * sizeof(float) * targetProperties.channelCount; in decode() local
288 memcpy(targetData + bytesWritten, buffer1, (size_t)bytesToWrite); in decode()
289 bytesWritten += bytesToWrite; in decode()
/third_party/skia/third_party/externals/brotli/csharp/org/brotli/dec/
DDecode.cs508 state.bytesToWrite = state.pos; in ReadMetablockInfo()
628 state.bytesToWrite = state.ringBufferSize; in CopyUncompressedData()
645 …int toWrite = System.Math.Min(state.outputLength - state.outputUsed, state.bytesToWrite - state.by… in WriteRingBuffer()
750 state.bytesToWrite = state.ringBufferSize; in Decompress()
778 state.bytesToWrite = state.ringBufferSize; in Decompress()
878 state.bytesToWrite = state.ringBufferSize; in Decompress()
912 state.bytesToWrite = state.ringBufferSize; in Decompress()
DState.cs110 internal int bytesToWrite; field in Org.Brotli.Dec.State
/third_party/expat/lib/
Dxmlparse.c748 const size_t bytesToWrite = count - bytesWrittenTotal; in writeRandomBytes_getrandom_nonblock() local
752 getrandom(currentTarget, bytesToWrite, getrandomFlags); in writeRandomBytes_getrandom_nonblock()
754 syscall(SYS_getrandom, currentTarget, bytesToWrite, getrandomFlags); in writeRandomBytes_getrandom_nonblock()
784 const size_t bytesToWrite = count - bytesWrittenTotal; in writeRandomBytes_dev_urandom() local
786 const ssize_t bytesWrittenMore = read(fd, currentTarget, bytesToWrite); in writeRandomBytes_dev_urandom()
/third_party/python/Modules/expat/
Dxmlparse.c749 const size_t bytesToWrite = count - bytesWrittenTotal; in writeRandomBytes_getrandom_nonblock() local
753 getrandom(currentTarget, bytesToWrite, getrandomFlags); in writeRandomBytes_getrandom_nonblock()
755 syscall(SYS_getrandom, currentTarget, bytesToWrite, getrandomFlags); in writeRandomBytes_getrandom_nonblock()
785 const size_t bytesToWrite = count - bytesWrittenTotal; in writeRandomBytes_dev_urandom() local
787 const ssize_t bytesWrittenMore = read(fd, currentTarget, bytesToWrite); in writeRandomBytes_dev_urandom()
/third_party/skia/third_party/externals/expat/expat/lib/
Dxmlparse.c749 const size_t bytesToWrite = count - bytesWrittenTotal; in writeRandomBytes_getrandom_nonblock() local
753 getrandom(currentTarget, bytesToWrite, getrandomFlags); in writeRandomBytes_getrandom_nonblock()
755 syscall(SYS_getrandom, currentTarget, bytesToWrite, getrandomFlags); in writeRandomBytes_getrandom_nonblock()
785 const size_t bytesToWrite = count - bytesWrittenTotal; in writeRandomBytes_dev_urandom() local
787 const ssize_t bytesWrittenMore = read(fd, currentTarget, bytesToWrite); in writeRandomBytes_dev_urandom()