Function raw

Summary

#include <src/uvw/loop.h>

(1) const uv_loop_t * raw() const noexcept

(2) uv_loop_t * raw() noexcept

Function overload

Synopsis

#include <src/uvw/loop.h>

const uv_loop_t * raw() const noexcept

Description

Gets the underlying raw data structure.

This function should not be used, unless you know exactly what you are doing and what are the risks.
Going raw is dangerous, mainly because the lifetime management of a loop, a handle or a request is in charge to the library itself and users should not work around it.

Warning
Use this function at your own risk, but do not expect any support in case of bugs.
Returns
The underlying raw data structure.

Source

Lines 129-131 in src/uvw/loop.cpp. Line 395 in src/uvw/loop.h.

UVW_INLINE const uv_loop_t *Loop::raw() const noexcept {
    return loop.get();
}

Synopsis

#include <src/uvw/loop.h>

uv_loop_t * raw() noexcept

Description

Gets the underlying raw data structure.

This function should not be used, unless you know exactly what you are doing and what are the risks.
Going raw is dangerous, mainly because the lifetime management of a loop, a handle or a request is in charge to the library itself and users should not work around it.

Warning
Use this function at your own risk, but do not expect any support in case of bugs.
Returns
The underlying raw data structure.

Source

Lines 134-136 in src/uvw/loop.cpp. Line 412 in src/uvw/loop.h.

UVW_INLINE uv_loop_t *Loop::raw() noexcept {
    return const_cast<uv_loop_t *>(const_cast<const Loop *>(this)->raw());
}





Add Discussion as Guest

Log in