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 2021/09/21 14:36:41 UTC

[GitHub] [nifi-minifi-cpp] martinzink edited a comment on pull request #1177: MINIFICPP-1644: ProcessSession::read ignores the size/offset of the

martinzink edited a comment on pull request #1177:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1177#issuecomment-924047824


   The current read callbacks work either
   - by reading until the size of the stream (e.g. utils::ByteOutputCallback::process), this coulld be fixed by wrapping the size() function.
   - or they read batch-by-batch until the read returns 0 (e.g. PutFile::ReadCallback::process), for this I've wrapped the read function so it wont over-read 
   
   For this I had to add tell function to `minifi::io::Stream` which will tell the current seek position
   I implemented `tell` everywhere where `seek` was implemented.
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org