Detect invalid sizes when encoding bytes fields.
[apps/agl-service-can-low-level.git] / tests / common / unittestproto.proto
index 7024942..eb3e7de 100644 (file)
@@ -12,6 +12,10 @@ message StringMessage {
     required string data = 1 [(nanopb).max_size = 10];
 }
 
+message BytesMessage {
+    required bytes data = 1 [(nanopb).max_size = 16];
+}
+
 message CallbackArray {
     // We cheat a bit and use this message for testing other types, too.
     // Nanopb does not care about the actual defined data type for callback