diff options
author | Mike Pall <mike> | 2021-03-25 02:21:31 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2021-03-25 02:21:31 +0100 |
commit | 4c6b669c419f313306b9e6ee43be4ad5f6d73ec6 (patch) | |
tree | 4547f52836e186e94b68b331ea73d6b0086cb415 /src/lj_serialize.h | |
parent | 836fb5bbd3a0d48cf3e4de70535925a85aea835f (diff) | |
download | luajit-4c6b669c419f313306b9e6ee43be4ad5f6d73ec6.tar.gz luajit-4c6b669c419f313306b9e6ee43be4ad5f6d73ec6.tar.bz2 luajit-4c6b669c419f313306b9e6ee43be4ad5f6d73ec6.zip |
String buffers, part 1: object serialization.
Sponsored by fmad.io.
Diffstat (limited to 'src/lj_serialize.h')
-rw-r--r-- | src/lj_serialize.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lj_serialize.h b/src/lj_serialize.h new file mode 100644 index 00000000..95d62f4e --- /dev/null +++ b/src/lj_serialize.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* | ||
2 | ** Object de/serialization. | ||
3 | ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h | ||
4 | */ | ||
5 | |||
6 | #ifndef _LJ_SERIALIZE_H | ||
7 | #define _LJ_SERIALIZE_H | ||
8 | |||
9 | #include "lj_obj.h" | ||
10 | #include "lj_buf.h" | ||
11 | |||
12 | #if LJ_HASBUFFER | ||
13 | |||
14 | #define LJ_SERIALIZE_DEPTH 100 /* Default depth. */ | ||
15 | |||
16 | LJ_FUNC StrBuf * LJ_FASTCALL lj_serialize_put(StrBuf *sb, cTValue *o); | ||
17 | LJ_FUNC StrBuf * LJ_FASTCALL lj_serialize_get(StrBuf *sb, TValue *o); | ||
18 | |||
19 | #endif | ||
20 | |||
21 | #endif | ||