I created a virtual file driver that takes input from a file. This input is saved internally (besides other things that happen) and written out on a reading file access.
Now when I write an empty string or datablock to this file, it seems the write handler is not called. It does not make sense on the first glance but on the second is does. Look at
echo -n "" > somefile
this clears the file's content. I need the same for a virtual file because I want to tell the driver "hey now there is no more data for you".
Do I have a chance to have the writehandler called with an empty information?
Sending a certain escape sequence is not an option because data is binary and I can't nominate a value to be treated as "empty".