Branch
Hash :
17512ec6
Author :
Thomas de Grivel
Date :
2024-12-07T23:09:21
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
/* kc3_main
* Copyright 2022,2023,2024 kmx.io <contact@kmx.io>
*
* Permission is hereby granted to use this software granted the above
* copyright notice and this permission paragraph are included in all
* copies and substantial portions of this software.
*
* THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
* PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
* AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
* THIS SOFTWARE.
*/
/**
* @file deserialize.h
* @brief Deserialization from blob to tag.
*
* Serialization is transforming a binary blob into memory data.
*/
#ifndef LIBKC3_DESERIALIZE_H
#define LIBKC3_DESERIALIZE_H
#include "types.h"
bool * deserialize_bool (s_deserialize *ds, bool *dest);
character * deserialize_character (s_deserialize *ds, character *c);
s_list ** deserialize_list (s_deserialize *ds, s_list **list);
s_tag * deserialize_tag (s_deserialize *ds, s_tag *tag);
s_tuple * deserialize_tuple (s_deserialize *ds, s_tuple *tuple);
s8 * deserialize_s8 (s_deserialize *ds, s8 *x);
s16 * deserialize_s16 (s_deserialize *ds, s16 *x);
s32 * deserialize_s32 (s_deserialize *ds, s32 *x);
s64 * deserialize_s64 (s_deserialize *ds, s64 *x);
s_str * deserialize_str (s_deserialize *ds, s_str *str);
sw * deserialize_sw (s_deserialize *ds, sw *x);
u8 * deserialize_u8 (s_deserialize *ds, u8 *x);
u16 * deserialize_u16 (s_deserialize *ds, u16 *x);
u32 * deserialize_u32 (s_deserialize *ds, u32 *x);
u64 * deserialize_u64 (s_deserialize *ds, u64 *x);
uw * deserialize_uw (s_deserialize *ds, uw *x);
#endif /* LIBKC3_DESERIALIZE_H */