Daniel Bakai created MINIFICPP-951:
--------------------------------------

             Summary: Revise streams and the corresponding API
                 Key: MINIFICPP-951
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-951
             Project: Apache NiFi MiNiFi C++
          Issue Type: Improvement
            Reporter: Daniel Bakai


* We have a lot of different streams for different use-cases, and many of them 
contain copy-pasted functions of the base class. A lot of duplicated code could 
be removed here
 * It would also be nice to introduce override for these given a lot of 
functions have very much alike signature (for eg. writing different primitive 
data types), at least it could make it more difficult to miss something.
 * Const correctness: the current implementations don’t handle the raw input 
ptr as const, but the codes that use the streams mostly assume that the data 
written is not going to be changed. I would prefer to have const interface and 
do a copy in the stream in case it cannot be avoided. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to