raydac/java-binary-block-parser

Question: Is it possible to get the binary stream of a class object?

mariusheil opened this issue · 3 comments

I just tested to generate java objects from a binary stream, which worked for me after annotating my fields with @bin(type=BinType.UBYTE) because it doesn't automatically map it to integers. But now I am looking for the opposite direction. Get the binary stream from my class, but I can't seem to find it. Is it implemented?

Hello
there is auxiliary class JBBPOut wich allows to write different kinds of information into binary stream. The Class has family of Bin() methods which can write object of class which fields marked by @bin. You can take a look at usage of the class in its tests

did the info help?

Hi, yes. Sorry for not responding. But after a Bit of evaluation I chose to use Preon for my implementation because it seemed a better fit. I like that it offers encoding and decoding without having to implement it seperately.

Thanks again,
Marius

-----Original Message-----

did the info help?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.