Release any file descriptor associated with this stream buffer.
Synopsis
Declared in <bdls_fdstreambuf.h>
int
clear();
Description
Release any file descriptor that may be associated with this file handler. If isOpened and willCloseOnReset are both true, the file descriptor will be closed, otherwise it will not. Return 0 on success, and a non‐zero value if the close fails. This method succeeds with no effect if isOpened was false. Note that fileDescriptor is FilesystemUtil::k_INVALID_FD after this call.
Return Value
0 on success, and a non‐zero value if the close fails
Created with MrDocs