7c2268 No.4311
Is there any tool that can generate C#, Java and Javascript class files (I know javascript have no classes) that can be easily converted to byte[] and back?
I remember google having something like it, but I don't even know how to search for something like it
I am expecting something that read some xml/json/proprietary file, and produce empty classes with just the serialize and deserialize methods ready
____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
7c2268 No.4319
You should write that tool yourself. I bet /tech/ would love to make a logo for it.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
7c2268 No.4330
In case you're still looking, Google's Protocol Buffers. You can also use MsgPack or thrift.
Protocol Buffers have a JSON serialization format, but it's not available in all languages.
The word you're looking for is "serialization". Binary serialization is what it looks like you really want.
Based on your last sentence, google protocol buffers is exactly what you want.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.