filebuf::filebuf

filebuf();

filebuf( filedesc fd );

filebuf( filedesc fd, char* pr, int nLength );

Parameters

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:

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.

filebuf OverviewStream Buffer Classes