
istream and streambuf problems
Hi, I am trying to access simple C char array thorw istream. I derived ne
class from streambuf as following:
class CArrayStreamBuf: public streambuf{
public:
CArrayStreamBuf(char* data, long iLen){
setg(data,data,data + iLen);}};
Now I create the stream:
CArrayStreamBuf buf((char*)data,lDataLen);
stream inFile(&buf);
My problem is that the read function working as designed but I can't use
seekg and tellg function. They simply do nothing. Any suggestion why is it?
Regards, Victor