I\'m trying to package a script with bbfreeze that uses the protocol buffers. Using bbfreeze like so:
I use json as the serialize format that runs on websocket in my web game at first. But there are so much redundancy in json. So I want to find a more effective format to serialize my object.
I am getting a response from server which I need to deserialize using protobuf. I got to know that I need to have .proto files which will contain definitions.
I need to write millions of Java POJOs to d开发者_Go百科isk, and read them from disk, and I need to do it fast.
I have to compose a protobuf message which should have 1 integer variables and a integer array. package protobuf;
I\'m using this library: PB for ObjC http://code.google.com/p/metasyntactic/wiki/ProtocolBuffers. The problem is I can\'t find an API to modify a PB object like setting a field of an object.
I\'d like to find a way to convert a binary protobuf message into a human readable description of the contained data, without using the .proto files.
Given: Windows开发者_如何学Python Client-Server communication over HTTP with protocol buffers Agent-Server communication over HTTP with protocol buffers (a different .proto spec)
I\'m using textual protobuf files for system configuration. One problem I have with 开发者_如何学Cthis is that the serialized protobuf format does not support comments.
I found this link on serialization protocols, but only XML handles referencing of fields via Xpath. I am not a big fan of XML since is slow to serialize, large and not nice to read in text format.