by limejuice · 13y ago · 0 comments
I am using JSON to save structured data for an application, and this is interesting, although my app doesn't spend alot of time encoding/deconding the JSON since the data structures are fairly simple.
If I wanted to use this for Java, wouldn't there still be decode step to convert the fields into java objects?
But... It's a cerealization protocol. :P
If I wanted to use this for Java, wouldn't there still be decode step to convert the fields into java objects?
Not necessarily. Your generated Java object could just contain a (ByteBuffer, int offset) pair. All the getter/setter methods then just write through to the underlying ByteBuffer.
In all seriousness, if you're familiar with protobuf the name seems reasonable enough. If you aren't, I guess you're not entirely the target audience.