On Oct 19, 5:23 pm, Marc Gravell <
marc.grav...@gmail.com> wrote:
> It is still a little unclear what you are trying to do; it is a little
> painful to parse out the data if you don't know the message-type in advance.
> However, many implementations will have an API to consume raw protobuf data
> - it sounds like CodedInputStream is such; as is (in the case of your
> earlier protobuf-net attempt) ProtoReader. That, however, will not
> *directly* let you reliably reconstruct a message, unless you know the
> schema details (are specific integers zig-zag, for example).
>
> Perhaps if you could be more specific as to what the data is that was sent?
> Note: protobuf includes virtually no "meta" on the wire; all you can find
> is, for example, "field 2 was 4 bytes, which could have been any of [there]
> values, depending on whether it was a float, an int, a zig-zag int, etc;
> field 5 was length-prefixed and 17 bytes - it *looks* like it might be the
> UTF-8 string "blah blah blah", but it could also have been a sub-message, or
> a packed array". All of *that* type of data (minus the interpretation)
> should be available via those APIs.
>
> Marc
>