Stream buffer associated with an opened file descriptor.
Synopsis
Declared in <bdls_fdstreambuf.h>
class FdStreamBuf
: public std::streambuf
Description
This class, derived from the C++ standard library class bsl::streambuf, is a mechanism that can be associated with an opened file descriptor, and, except for changing the locale, enables the caller to invoke all the standard bsl::streambuf operations on that file descriptor. Note that objects of this class are always in exactly one of the 5 modes outlined in the enum FdStreamBuf::FdStreamBufMode.
Base Classes
Name |
Description |
|
Member Functions
Name |
Description |
|
Create a stream buffer associated with the specified file descriptor. |
|
Destroy this object and, if |
Release any file descriptor associated with this stream buffer. |
|
Return the file descriptor associated with this object, or |
|
Return |
|
Disassociate this stream buffer from its file descriptor without closing it. |
|
Associate this object with the specified file descriptor. |
|
Return |
Protected Member Functions
Name |
Description |
|
Set the locale for this object. This method has no effect. The behavior is undefined unless the specified |
|
Flush the output buffer, optionally appending character |
|
Put back a character into the input sequence. |
|
Set the file pointer associated with the file descriptor according to the specified |
|
Seek to |
|
Use |
|
Return the number of characters remaining to be read. |
|
If in output mode, flush the buffer to the associated file descriptor; otherwise do nothing. Return 0 on success, ‐1 otherwise. |
|
Replenish the input buffer and return the next character of input. |
|
Read up to |
|
Write up to |
Created with MrDocs