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.

Synopsis

Declared in <bdls_fdstreambuf.h>

int
clear();

Created with MrDocs