The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
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.
 
 
                                     -♦-