getline bug c++
istream->getline drops one character when it goes to read from one buffer to another buffer...
The code i am using is as below
istream * is = request->Instream();
request->Instream is an async buffer which reads 1024 bytes everytime..
if the buffer is
first line.. 1024
second line ... abcdefgh
if the 1000 bytes ends in the middle of the second line for example at 'c', then the next char 'd' gets droppped and it starts to read from 'e'
if I read the whole buffer using readsome() then it comes fine.. get() also gives same problem..
Can someone help me with this.. or any other method to read the buffer line by line..