uvw 3.1.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
uvw::fs_helper Struct Reference

Helper functions. More...

#include <fs.h>

Static Public Member Functions

static os_file_descriptor handle (file_handle file) noexcept
 Gets the OS dependent handle.
 
static file_handle open (os_file_descriptor descriptor) noexcept
 Gets the file descriptor.
 

Detailed Description

Helper functions.

Definition at line 1203 of file fs.h.

Member Function Documentation

◆ handle()

static os_file_descriptor uvw::fs_helper::handle ( file_handle  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 file_handle uvw::fs_helper::open ( os_file_descriptor  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: