diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-06 00:25:51 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-08-06 00:25:51 +0200 |
commit | b23d4bf1d3a58b4a8304ca9cf050914e073de958 (patch) | |
tree | 23ab9381b3803692197d6deae2659da21d0a9614 /c++/codec/schema.h | |
parent | 3c1b311bbcd54b3e6798d619e51b55536b316cdc (diff) |
c++,codec: Adding fixed array type to native encoding
Diffstat (limited to 'c++/codec/schema.h')
-rw-r--r-- | c++/codec/schema.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/c++/codec/schema.h b/c++/codec/schema.h index 2f63fe9..ba6dd4c 100644 --- a/c++/codec/schema.h +++ b/c++/codec/schema.h @@ -42,6 +42,13 @@ template <typename... T> struct Tuple {}; /** * This acts as a separator of different encodings being mashed together + * For example we can transport any base64 encodings in JSON + * + * using WrappedExample = schema::Tuple< + * schema::Wrapper<schema::String, encode::Base64> + * >; + * + * data<WrappedExample, encode::Json> ex_data; */ template <typename T, typename Enc> class Wrapper {}; |