summaryrefslogtreecommitdiffstats
path: root/import/hwpf/fapi2/include/buffer_stream.H
Commit message (Collapse)AuthorAgeFilesLines
* fapi2: Add helper classes for streaming data into/out of variable_buffersJoachim Fenkes2017-10-231-0/+220
This adds buffer_stream.H which currently contains three classes: buffer_ostream - for streaming bits into a variable_buffer fixed_buffer_ostream<OT> - for streaming OT-sized chunks into a buffer fixed_buffer_istream<OT> - for streaming OT-sized chunks out of a buffer The classes keep track of the current write/read position so we don't have to drag that along with the buffers manually. There's no buffer_istream -- I didn't need that yet so haven't implemented it. Also adds tests to fapi2_variable_buffer_test.C. Change-Id: I53578d800c5c52c688bd761326b36a51c06dd213 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25520 Dev-Ready: Joachim Fenkes <fenkes@de.ibm.com> Tested-by: PPE CI Tested-by: Jenkins Server Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Reviewed-by: Matt K. Light <mklight@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
OpenPOWER on IntegriCloud