Struct DataEvent

Synopsis

#include <src/uvw/stream.h>

struct DataEvent

Description

DataEvent event.

It will be emitted by StreamHandle according with its functionalities.

Mentioned in

Methods

DataEvent

Source

Lines 64-69 in src/uvw/stream.h.

struct DataEvent {
    explicit DataEvent(std::unique_ptr<char[]> buf, std::size_t len) noexcept;

    std::unique_ptr<char[]> data; /*!< A bunch of data read on the stream. */
    std::size_t length; /*!< The amount of data read on the stream. */
};





Add Discussion as Guest

Log in