Is there a way to write something to the buffer, but as soon as the buffer becomes large, start writing to the file?
I would like the whole process to be automatic. Basically, I would like to write to the buffer and have a library to make sure that I don't have enough memory.
I never want to block the recording process. If the buffer is too large, the library should write part of it to disk.
Does anyone know such a library?
Grae
The main thing is that I want to write only to disk when necessary. Data should be stored in memory, if buffer size allows.
source share