The RenderData hack is dirty and likely bogus. This uses the write filter calls to always disable the element when trying to write it.
We actually override the CanWrite() method more often (all Matroska elements) than we override RenderData(). Maybe using an interface with multiple class inheritance could avoid this and have one implementation for all of them...
On top of #148, only the last 2 commits matter here. Requires https://github.com/Matroska-Org/libebml/pull/207 and https://github.com/Matroska-Org/libebml/pull/210
The RenderData hack is dirty and likely bogus. This uses the write filter calls to always disable the element when trying to write it.
We actually override the
CanWrite()
method more often (all Matroska elements) than we overrideRenderData()
. Maybe using an interface with multiple class inheritance could avoid this and have one implementation for all of them...