Function raw

Summary

#include <src/uvw/underlying_type.hpp>

(1) const U * raw() const noexcept

(2) U * raw() noexcept

Function overload

Synopsis

#include <src/uvw/underlying_type.hpp>

const U * 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 88-90 in src/uvw/underlying_type.hpp.

const U * raw() const noexcept {
    return &resource;
}

Synopsis

#include <src/uvw/underlying_type.hpp>

U * 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 107-109 in src/uvw/underlying_type.hpp.

U * raw() noexcept {
    return const_cast<U *>(const_cast<const UnderlyingType *>(this)->raw());
}





Add Discussion as Guest

Log in