uvw 2.12.1
Loading...
Searching...
No Matches
uvw::FsHelper Struct Reference

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.
 

Detailed Description

Helper functions.

Definition at line 1401 of file fs.h.

Member Function Documentation

◆ handle()

static OSFileDescriptor uvw::FsHelper::handle ( FileHandle file)
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.

◆ open()

static FileHandle uvw::FsHelper::open ( OSFileDescriptor descriptor)
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.


The documentation for this struct was generated from the following file: