Skip to content

Commit

Permalink
includes/hex: Hide implementation data of json types
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv authored Jan 16, 2025
1 parent 4d172ce commit 0830426
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions includes/hex/type/json.pat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace auto hex::type {
@tparam Size size of the string
*/
struct Json<auto Size> {
char __data[Size];
char __data[Size] [[hidden]];
builtin::hex::dec::Json<__data> json [[merge]];
};

Expand All @@ -22,7 +22,7 @@ namespace auto hex::type {
@tparam Size size of the data
*/
struct Bson<auto Size> {
u8 __data[Size];
u8 __data[Size] [[hidden]];
builtin::hex::dec::Bson<__data> bson [[merge]];
};

Expand All @@ -31,7 +31,7 @@ namespace auto hex::type {
@tparam Size size of the data
*/
struct Cbor<auto Size> {
u8 __data[Size];
u8 __data[Size] [[hidden]];
builtin::hex::dec::Cbor<__data> cbor [[merge]];
};

Expand All @@ -40,7 +40,7 @@ namespace auto hex::type {
@tparam Size size of the data
*/
struct Bjdata<auto Size> {
u8 __data[Size];
u8 __data[Size] [[hidden]];
builtin::hex::dec::Bjdata<__data> bjdata [[merge]];
};

Expand All @@ -49,7 +49,7 @@ namespace auto hex::type {
@tparam Size size of the data
*/
struct Msgpack<auto Size> {
u8 __data[Size];
u8 __data[Size] [[hidden]];
builtin::hex::dec::Msgpack<__data> msgpack [[merge]];
};

Expand All @@ -58,7 +58,7 @@ namespace auto hex::type {
@tparam Size size of the data
*/
struct Ubjson<auto Size> {
u8 __data[Size];
u8 __data[Size] [[hidden]];
builtin::hex::dec::Ubjson<__data> ubjson [[merge]];
};

Expand Down

0 comments on commit 0830426

Please sign in to comment.