Skip to content

Commit

Permalink
Added schemata
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzicheng1987 committed Jan 20, 2025
1 parent f4c1ff1 commit a7da732
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/rfl/flatbuf/Writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,32 @@
#include "../internal/is_literal.hpp"
#include "../internal/ptr_cast.hpp"
#include "calc_vtable_offset.hpp"
#include "schema/Type.hpp"

namespace rfl::flatbuf {

class Writer {
public:
struct FlatbufOutputArray {
schema::Type::Vector* schema_;
flatbuffers::uoffset_t offset_ = 0;
size_t ix_ = 0;
};

struct FlatbufOutputMap {
schema::Type::Map* schema_;
flatbuffers::uoffset_t offset_ = 0;
size_t ix_ = 0;
};

struct FlatbufOutputObject {
schema::Type::Table* schema_;
flatbuffers::uoffset_t offset_ = 0;
size_t ix_ = 0;
};

struct FlatbufOutputUnion {
schema::Type::Table* schema_;
flatbuffers::uoffset_t offset_ = 0;
};

Expand Down

0 comments on commit a7da732

Please sign in to comment.