Re: [protobuf] which protobuf type should be used for byte arrays

2019-01-23 Thread Marc Gravell
"bytes" is correct. The problem here is usually "treating binary data as nul-terminated strings", which is almost certainly something *outside* of the protobuf code, but in your code. Basically, you can't ever treat protobuf data as nul-terminated strings. On Wed, 23 Jan 2019, 00:52 What is the

Re: [protobuf] which protobuf type should be used for byte arrays

2019-01-22 Thread Nadav Samet
That shouldn't be the case. Byte arrays are encoded with their length first, exactly because all possible bytes are allowed.a Which language are you using, can you share sample code? On Tue, Jan 22, 2019, 4:52 PM What is the correct type to use when encoding byte arrays that contain 0s? > If I