Function allocCallback

Synopsis

#include <src/uvw/handle.hpp>

static void allocCallback(uv_handle_t *, std::size_t suggested, uv_buf_t *buf)

Description

No description yet.

Source

Lines 40-43 in src/uvw/handle.hpp.

static void allocCallback(uv_handle_t *, std::size_t suggested, uv_buf_t *buf) {
    auto size = static_cast<unsigned int>(suggested);
    *buf = uv_buf_init(new char[size], size);
}





Add Discussion as Guest

Log in