|
uvco 0.1
|
Classes | |
| struct | uvco::UvHandleDeleter |
| class | uvco::LifetimeTracker< T > |
| class | uvco::FlagGuard |
| class | uvco::ZeroAtExit< T > |
Typedefs | |
| using | uvco::uv_status = int |
| Result of a libuv operation, an errno error code. | |
Functions | |
| void | uvco::allocator (uv_handle_t *, size_t sugg, uv_buf_t *buf) |
| libuv allocator. | |
| void | uvco::freeUvBuf (const uv_buf_t *buf) |
| template<typename R, typename F> requires std::is_invocable_r_v<R, F, std::string_view> | |
| R | uvco::callWithNullTerminated (std::string_view view, F &&f) |
| template<typename Into, typename Handle> | |
| Into * | uvco::getData (const Handle *handle) |
| Obtain data pointer set on handle with nullptr check and type cast. | |
| template<typename Into, typename Handle> | |
| Into * | uvco::getDataOrNull (const Handle *handle) |
| template<typename Into, typename Request> | |
| Into * | uvco::getRequestData (const Request *req) |
| Obtain data pointer set on request with nullptr check and type cast. | |
| template<typename Into, typename Request> | |
| Into * | uvco::getRequestDataOrNull (const Request *req) |
| template<typename Handle, typename Data> | |
| void | uvco::setData (Handle *handle, Data *data) |
| Obtain data pointer set on request with type cast. Data may be nullptr. | |
| template<typename Handle> | |
| void | uvco::resetData (Handle *handle) |
| Reset data pointer on handle to nullptr. | |
| template<typename Request, typename Data> | |
| void | uvco::setRequestData (Request *req, Data *data) |
| Set data pointer on request. | |
| template<typename Request> | |
| void | uvco::resetRequestData (Request *req) |
| template<typename Handle> | |
| bool | uvco::dataIsNull (Handle *handle) |
| Check if handle data is null. | |
| template<typename Request> | |
| bool | uvco::requestDataIsNull (Request *req) |
| Check if request data is null. | |
Variables | |
| const bool | uvco::TRACK_LIFETIMES = true |
| using uvco::uv_status = int |
Result of a libuv operation, an errno error code.
| void uvco::allocator | ( | uv_handle_t * | , |
| size_t | sugg, | ||
| uv_buf_t * | buf ) |
libuv allocator.
| R uvco::callWithNullTerminated | ( | std::string_view | view, |
| F && | f ) |
| bool uvco::dataIsNull | ( | Handle * | handle | ) |
Check if handle data is null.
| void uvco::freeUvBuf | ( | const uv_buf_t * | buf | ) |
| Into * uvco::getData | ( | const Handle * | handle | ) |
Obtain data pointer set on handle with nullptr check and type cast.
| Into * uvco::getDataOrNull | ( | const Handle * | handle | ) |
Obtain data pointer set on handle with type cast. Returns nullptr if no data is set.
| Into * uvco::getRequestData | ( | const Request * | req | ) |
Obtain data pointer set on request with nullptr check and type cast.
| Into * uvco::getRequestDataOrNull | ( | const Request * | req | ) |
Obtain data pointer set on request with type cast. Returns nullptr if data is nullptr.
| bool uvco::requestDataIsNull | ( | Request * | req | ) |
Check if request data is null.
| void uvco::resetData | ( | Handle * | handle | ) |
Reset data pointer on handle to nullptr.
| void uvco::resetRequestData | ( | Request * | req | ) |
| void uvco::setData | ( | Handle * | handle, |
| Data * | data ) |
Obtain data pointer set on request with type cast. Data may be nullptr.
| void uvco::setRequestData | ( | Request * | req, |
| Data * | data ) |
Set data pointer on request.
| const bool uvco::TRACK_LIFETIMES = true |