Mercurial
comparison third_party/luajit/src/lj_serialize.h @ 178:94705b5986b3
[ThirdParty] Added WRK and luajit for load testing.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Thu, 22 Jan 2026 20:10:30 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 177:24fe8ff94056 | 178:94705b5986b3 |
|---|---|
| 1 /* | |
| 2 ** Object de/serialization. | |
| 3 ** Copyright (C) 2005-2023 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 void LJ_FASTCALL lj_serialize_dict_prep_str(lua_State *L, GCtab *dict); | |
| 17 LJ_FUNC void LJ_FASTCALL lj_serialize_dict_prep_mt(lua_State *L, GCtab *dict); | |
| 18 LJ_FUNC SBufExt * LJ_FASTCALL lj_serialize_put(SBufExt *sbx, cTValue *o); | |
| 19 LJ_FUNC char * LJ_FASTCALL lj_serialize_get(SBufExt *sbx, TValue *o); | |
| 20 LJ_FUNC GCstr * LJ_FASTCALL lj_serialize_encode(lua_State *L, cTValue *o); | |
| 21 LJ_FUNC void lj_serialize_decode(lua_State *L, TValue *o, GCstr *str); | |
| 22 #if LJ_HASJIT | |
| 23 LJ_FUNC MSize LJ_FASTCALL lj_serialize_peektype(SBufExt *sbx); | |
| 24 #endif | |
| 25 | |
| 26 #endif | |
| 27 | |
| 28 #endif |