Searched refs:framesToWrite (Results 1 – 2 of 2) sorted by relevance
59 int32_t framesToWrite = provider.ConsumeIntegralInRange<int32_t>(1, loopMaxWrite); in LLVMFuzzerTestOneInput() local62 if (framesToWrite > maxFramesLeft) { in LLVMFuzzerTestOneInput()63 framesToWrite = maxFramesLeft; in LLVMFuzzerTestOneInput()66 if (framesToWrite == 0) { in LLVMFuzzerTestOneInput()72 provider.ConsumeBytes<uint8_t>(framesToWrite * frameSize); in LLVMFuzzerTestOneInput()73 ssize_t actualFramesWritten = writer.write(&bytesToWrite[0], framesToWrite); in LLVMFuzzerTestOneInput()76 if (actualFramesWritten != framesToWrite) { in LLVMFuzzerTestOneInput()
118 size_t framesToWrite = sfinfoin.frames - framesWritten; in main() local120 if (framesToWrite == 0 && (framesToRead == 0 || !readerThrottlesWriter)) { in main()124 if (framesToWrite > maxFramesPerWrite) { in main()125 framesToWrite = maxFramesPerWrite; in main()127 framesToWrite = rand() % (framesToWrite + 1); in main()129 &inputBuffer[framesWritten * sfinfoin.channels], framesToWrite); in main()131 printf("wrote %d out of %d\n", (int) actualWritten, (int) framesToWrite); in main()133 if (actualWritten < 0 || (size_t) actualWritten > framesToWrite) { in main()137 if (actualWritten < min((int) frameCount - fifoFillLevel, (int) framesToWrite)) { in main()139 (int) actualWritten, (int) frameCount - fifoFillLevel, (int) framesToWrite); in main()