Github user benqiu2016 commented on a diff in the pull request: https://github.com/apache/nifi-minifi-cpp/pull/74#discussion_r110004694 --- Diff: libminifi/src/Site2SiteClientProtocol.cpp --- @@ -1240,6 +1257,88 @@ void Site2SiteClientProtocol::transferFlowFiles( return; } +void Site2SiteClientProtocol::transferBytes(core::ProcessContext *context, core::ProcessSession *session, uint8_t *payload, int length, --- End diff -- how can i do a std::move from a string to a std::vector<uint8_t> without copy? http://stackoverflow.com/questions/10445042/stdmove-between-stdstring-and-stdvectorunsigned-char pass the raw byte looks OK to me and make the code much simple in this case instead of convert from one type to another.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---