uvw 2.12.1
|
Helper functions. More...
#include <fs.h>
Static Public Member Functions | |
static OSFileDescriptor | handle (FileHandle file) noexcept |
Gets the OS dependent handle. | |
static FileHandle | open (OSFileDescriptor descriptor) noexcept |
Gets the file descriptor. | |
|
staticnoexcept |
Gets the OS dependent handle.
For a file descriptor in the C runtime, get the OS-dependent handle. On UNIX, returns the file descriptor as-is. On Windows, this calls a system function.
Note that the return value is still owned by the C runtime, any attempts to close it or to use it after closing the file descriptor may lead to malfunction.
|
staticnoexcept |
Gets the file descriptor.
For a OS-dependent handle, get the file descriptor in the C runtime. On UNIX, returns the file descriptor as-is. On Windows, this calls a system function.
Note that the return value is still owned by the C runtime, any attempts to close it or to use it after closing the handle may lead to malfunction.