You are here:

C++/Seekoff implementation in my class

Advertisement


Question
have derived my buffered class from basic_streambuf.
I am unable to get the exact idea of how to implement seekoff() function.
Can you suggest some sutiable method to implement

Answer
Dear Ravi

I went through http://www.cplusplus.com/reference/iostream/streambuf/seekoff.html and I think that you should try to go through the GCC/Microsoft implementation of filebuf/stringbuf to understand the functionality of seekoff and implement it. If still have problem, please give me more details of the derived class you are trying to implement and I will try to answer this again.  

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Amit Kumar

Expertise

I can answer Cplusplus language and library questions, including STL, ACE, Boost. I have a good background in Mathematics.

Experience

Programming in CPP for about 8 years. Industry experience of 4 years.

Education/Credentials
Bachelors and Masters in Computer Science from Indian Institute of Technology Delhi.

©2016 About.com. All rights reserved.