Class writer

Synopsis

#include <include/flecs/cpp/reader_writer.hpp>

class writer final

Description

No description yet.

Methods

writer
write

Source

Lines 33-45 in include/flecs/cpp/reader_writer.hpp.

class writer final {
public:
    explicit writer(world& world) {
        m_writer = ecs_writer_init(world.c_ptr());
    }

    int32_t write(const char *buffer, int64_t size) {
        return ecs_writer_write(buffer, static_cast<int32_t>(size), &m_writer);
    }

private:
    ecs_writer_t m_writer;
};