Struct FsEvent< details::UVFsType::SENDFILE >

Synopsis

#include <src/uvw/fs.h>

template<>
struct FsEvent<details::UVFsType::SENDFILE>

Description

FsEvent event specialization for FsRequest::Type::SENDFILE.

It will be emitted by FsReq and/or FileReq according with their functionalities.

Methods

FsEvent

Source

Lines 217-225 in src/uvw/fs.h.

template<>
struct FsEvent<details::UVFsType::SENDFILE> {
    FsEvent(const char *pathname, std::size_t sz) noexcept
        : path{pathname}, size{sz}
    {}

    const char * path; /*!< The path affecting the request. */
    std::size_t size; /*!< The amount of data transferred. */
};





Add Discussion as Guest

Log in