Relative Content

Tag Archive for c#protocol-buffersprotoc

Add option optimize_no_pack to C Protocol Buffer

I’m trying to modify the C Protocol Buffer (Protoc-C) to support a few options, one of which is optimize_no_pack. When optimize_no_pack is enabled, Protocol Buffers uses the non-packed encoding for repeated fields. Each value is encoded separately, which can be slightly larger but avoids the need to split the byte string during decoding.