5 ms·
Can KaiTai parse a binary file/stream containing heterogeneous binary structures? Documentation seems not that clear regarding this. Also the structure definiti
by billfruit 5y ago
Can KaiTai parse a binary file/stream containing heterogeneous binary structures? Documentation seems not that clear regarding this. Also the structure definition seems to needs compiling, what if there is change of structure at runtime? Can it handle it?
Is it possible to for an application to have editable structures and KaiTai to parse them without needing to recompile the whole application (I'm speaking here in a java context).
- junon 5y ago> Can KaiTai parse a binary file/stream containing heterogeneous binary structures? Depends, but in many cases yes - as long as there is an indicator of the format to follow, it can handle variable length/"union"-type structures. > what if there is change of structure at runtime? Can it handle it? Probably not unless you're using Java (iirc the compiler uses the JVM). You probably want a binary parser combinator/pickling library to do what you're thinking.