diff options
Diffstat (limited to 'modules/codec/forst.h')
-rw-r--r-- | modules/codec/forst.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/codec/forst.h b/modules/codec/forst.h new file mode 100644 index 0000000..7e8fbf0 --- /dev/null +++ b/modules/codec/forst.h @@ -0,0 +1,32 @@ +#pragma once + +#include "data.h" + +namespace saw { +namespace encode { +struct KelForst {}; +} +} + +#include "forst.tmpl.hpp" + +namespace saw { +class data<schema::String, encode::KelForst> { +private: + own<buffer> buff_; +public: + data(own<buffer> buff): + buff_{std::move(buff)} + {} +}; + +template<typename... T, string_literal... Keys> +class data<schema::Struct<schema::Member<T,Keys>...>, encode::KelForst> { +private: + own<buffer> buff_; +public: + data(own<buffer> buff): + buff_{std::move(buff)} + {} +}; +} |