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 deserializatio开发者_StackOverflow中文版n over ethernet. Has anyone built protobuf without using iostreams?
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
- ParseFromArray
- ParasePartialFromArray
- ParseFromString
- ParsePartialFromString
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.
精彩评论