Searched refs:framesToRead (Results 1 – 2 of 2) sorted by relevance
86 int32_t framesToRead = framesWritten; in LLVMFuzzerTestOneInput() local88 framesToRead = provider.ConsumeIntegralInRange<size_t>(1, framesToRead); in LLVMFuzzerTestOneInput()91 uint8_t * readBuffer = new uint8_t[framesToRead * frameSize]; in LLVMFuzzerTestOneInput()92 ssize_t actualFramesRead = reader.read(readBuffer, framesToRead); in LLVMFuzzerTestOneInput()95 if (actualFramesRead != framesToRead) { in LLVMFuzzerTestOneInput()100 framesWritten -= framesToRead; in LLVMFuzzerTestOneInput()
119 size_t framesToRead = sfinfoin.frames - framesRead; in main() local120 if (framesToWrite == 0 && (framesToRead == 0 || !readerThrottlesWriter)) { in main()159 if (framesToRead > maxFramesPerRead) { in main()160 framesToRead = maxFramesPerRead; in main()162 framesToRead = rand() % (framesToRead + 1); in main()164 &outputBuffer[framesRead * sfinfoin.channels], framesToRead); in main()166 printf("read %d out of %d\n", (int) actualRead, (int) framesToRead); in main()168 if (actualRead < 0 || (size_t) actualRead > framesToRead) { in main()188 (int) actualRead, (int) framesToRead); in main()193 if (actualRead < min(fifoFillLevel, (int) framesToRead)) { in main()