d'ouh! you are right! (though the "0" was a copy-paste error from my code to the example code i posted i indeed had the wrong bytes length and usedBufLen was always 0)
what a dumb mistake... thank you very much! On Jul 19, 2:27 pm, Oliver Jowett <oliver.jow...@gmail.com> wrote: > phelyks wrote: > > if (!unp.ParseFromArray(buffer.c_array(), 0)) > > You are claiming that the array to parse from is zero bytes long. > Unsurprisingly, trying to parse a zero-byte message doesn't give > anything useful. Perhaps you meant to pass "usedBufLen"? > > -O -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.