stdiobuf - Member Functions and Data by Group

Constructors & Destructor

Objects of the stdiobuf class can be constructed and destructed.

~stdiobuf
public:virtual ~stdiobuf()

This is supported on AIX OS/400 z/OS

Destructor for stdiobuf. Frees the spaces allocated by the stdiobuf constructor and flushes the file that this stdiobuf object is associated with.

stdiobuf
public:stdiobuf(FILE* f)

This is supported on AIX OS/400 z/OS

Creates an stdiobuf object that is associated with the FILE pointed to by f. Changes that are made to the stream buffer in an stdiobuf object are also made to the associated FILE pointed to by f.

Note: If ios::stdio is set in the format state of an ostream object, a call to osfx() flushes stdout and stderr.

Positioning Functions

overflow
public:virtual int overflow(int = EOF)

This is supported on AIX OS/400 z/OS

Emptys an output buffer. Returns EOF on error, 0 otherwise.

pbackfail
public:virtual int pbackfail(int c)

This is supported on AIX OS/400 z/OS

Attempts to put back a character.

seekoff
public:virtual streampos seekoff(streamoff, ios::seek_dir, int)

This is supported on AIX OS/400 z/OS

sync
public:virtual int sync()

This is supported on AIX OS/400 z/OS

underflow
public:virtual int underflow()

This is supported on AIX OS/400 z/OS

Fills an input buffer. Returns EOF on error or end of input, 0 otherwise.

Query Functions

stdiofile
public:FILE* stdiofile()

This is supported on AIX OS/400 z/OS

Returns a pointer to the FILE object that the stdiobuf object is associated with.