Reputation: 5177
The title sums it up. The project I am currently working on doesn't use iostreams. And we are using STLport. We would like to use the google protobuf library for message serialization and deserialization over ethernet. Has anyone built protobuf without using iostreams?
Upvotes: 0
Views: 538
Reputation: 2230
Are you talking about interacting with protobufs without using iostreams? Are actually building without the types visible. This is what you can do to interact with them without the types:
Yes using protobufs without IOStreams is very possible. All protocol buffers messages support methods such as
that allow you to implemented everything using your own buffers.
To build without the types you could in theory give it stubs to satisfy the requirements and get it to compile since you won't need them if you use the above interface.
Upvotes: 2