Boost IOStream - Buffer as an input stream
3 Nov
2014
3 Nov
'14
5:14 p.m.
Hi, We am trying to use a buffer as an input stream. For that we have used "basic_array_source" like this boost::iostreams::basic_array_source<BYTE> source(mem_ptr,size); boost::iostreams::stream<boost::iostreams::basic_array_source <BYTE>> streamReader; streamReader.open(source, std::ios::binary); But this method does not give input-stream related methods (functions like seekg), instead it give methods related to output stream (seekp). Can you please tell what is wrong with this approach? Thanks, Lloyd
3609
Age (days ago)
3609
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lloyd