You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2020/02/17 12:53:01 UTC

[GitHub] [nifi-minifi-cpp] szaszm commented on a change in pull request #515: MINIFICPP-646 - Re-evaluate passing attributes. Potentially deprecate…

szaszm commented on a change in pull request #515: MINIFICPP-646 - Re-evaluate passing attributes. Potentially deprecate…
URL: https://github.com/apache/nifi-minifi-cpp/pull/515#discussion_r380164560
 
 

 ##########
 File path: nanofi/include/core/cstructs.h
 ##########
 @@ -89,8 +89,7 @@ typedef struct processor_context processor_context;
 
 typedef struct {
   const char *key;
-  void *value;
-  size_t value_size;
+  const char *value;
 
 Review comment:
   > We provide API to add non-terminated str with length, (something like strncpy), but inside store null-terminated things.
   
   We can not provide non-null-terminated API for null-terminated storage, because the former allows for null bytes in the payload while the latter does not.
   +1 for keeping `void*` + `size_t` if the attribute value can ever contain a null byte as part of the payload, -1 if it is always a string that can be null-terminated.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services