Home
last modified time | relevance | path

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

/system/media/audio_utils/spdif/
DSPDIFEncoder.cpp118 size_t bytesToWrite = numShorts * sizeof(uint16_t); in writeBurstBufferShorts() local
119 if (wouldOverflowBuffer(bytesToWrite)) { in writeBurstBufferShorts()
124 memcpy(&mBurstBuffer[mByteCursor >> 1], buffer, bytesToWrite); in writeBurstBufferShorts()
125 mByteCursor += bytesToWrite; in writeBurstBufferShorts()
273 size_t bytesToWrite = bytesLeft; in write() local
275 if (bytesToWrite > mPayloadBytesPending) { in write()
276 bytesToWrite = mPayloadBytesPending; in write()
278 writeBurstBufferBytes(data, bytesToWrite); in write()
280 data += bytesToWrite; in write()
281 bytesLeft -= bytesToWrite; in write()
[all …]
/system/media/audio_utils/fuzz/audioutilsfiforeaderwriter_fuzzer/
Daudioutilsfiforeaderwriter_fuzzer.cpp71 std::vector<uint8_t> bytesToWrite = in LLVMFuzzerTestOneInput() local
73 ssize_t actualFramesWritten = writer.write(&bytesToWrite[0], framesToWrite); in LLVMFuzzerTestOneInput()