Struct FsEvent< details::UVFsType::WRITE >

Synopsis

#include <src/uvw/fs.h>

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

Description

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

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

Methods

FsEvent

Source

Lines 200-208 in src/uvw/fs.h.

template<>
struct FsEvent<details::UVFsType::WRITE> {
    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 written to the given path. */
};





Add Discussion as Guest

Log in