|
-
April 14th, 2008, 04:33 AM
#1
Default buffer size and buffer handling using Filebuf
Hi there,
Was just wondering if someone could help me out about two little questions I didn't find an answer so far.
Actually I'm asked to write some application reading/writing files from disk. This application is driven by a third party which requests reads and writes of defined bytes size. In other words, my application somehow serves files to a third party client !
As the third party client file service should be as fast as possible (at least in reading), my application needs to handle a buffer bigger than the read requests and allowing contiguous seeking in the files. Looking through standard library, I found filebuf which seems doing the job (never used it before).
My two questions are :
- Does anyone know about the default buffer size allocated to filebuf (I've already know there were fucntion allowing this buffer size to be changed)
- How does filebuf deal with the seeking? In other words, is there so to say a self managed working zone in the middle of the buffer with some data before and after it to allow seeking operation ?
Thanks in advance if someone is able to give me some info, or any relevant link to it
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|