Hello,
On Fri, Mar 4, 2016 at 2:09 PM, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote:
[...]
3.) Could be solved entirely in the add-on. But then each add-on
would need to solve this.So, the final AIM is to adjust the add-on to be aware about the
Also, buffering could be better handled in the BDataIO/BPositionIO
class (especially for sniffing where more than one add-on is involved).
different functionalities supplied by BDataIO, BPositionIO, BStreamingIO?
No, IMO the above mentioned class should always be used for the
codec/container add-ons, no matter if the data is streamed or not.
For example, the add-on could set some constraints (ie. how it requires
the data, or what features it requires -- like reading from the end of the
file), and the data IO class would either try its best to accomplish that,
or fail if the underlying stream doesn't allow for that operation.