Ability to save objects to binary format

This commit is contained in:
Juan Linietsky 2017-08-14 11:58:10 -03:00
parent 9575dbdf78
commit b7571582ed
4 changed files with 174 additions and 32 deletions

View file

@ -183,7 +183,7 @@ static inline double decode_double(const uint8_t *p_arr) {
return md.d;
}
Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int *r_len = NULL);
Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int *r_len = NULL, bool p_allow_objects=true);
Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len);
#endif