[ 
https://issues.apache.org/jira/browse/MINIFICPP-951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marton Szasz updated MINIFICPP-951:
-----------------------------------
    Summary: Separate Streams and serialization  (was: Revise streams and the 
corresponding API)

> Separate Streams and serialization
> ----------------------------------
>
>                 Key: MINIFICPP-951
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-951
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Dániel Bakai
>            Priority: Major
>
> * 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
(v8.20.10#820010)

Reply via email to