The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
filebuf::filebuf
filebuf                                     Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  filebuf();
  filebuf( filedesc fd );
  filebuf( filedesc fd, char* pr, int nLength );
 
  Parameter   Description
 
  <fd>        A file descriptor as returned by a call to the run-time
              function _sopen. filedesc is a typedef equivalent to int.
 
  <pr>        Pointer to a previously allocated reserve area of length
              <nLength>.
 
  <nLength>   The length (in bytes) of the reserve area.
 
  Remarks
 
  The three filebuf constructors are described as follows:
  Constructor           Description
 
  filebuf()             Constructs a filebuf object without attaching it
                        to a file.
 
  filebuf( filedesc )   Constructs a filebuf object and attaches it to an
                        open file.
 
  filebuf( filedesc, char*, int )
                        Constructs a filebuf object, attaches it to an
                        open file, and initializes it to use a specified
                        reserve area.
 
 
                                     -♦-