Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
l_util.cpp File Reference
#include "irrlichttypes_extrabloated.h"
#include "lua_api/l_util.h"
#include "lua_api/l_internal.h"
#include "lua_api/l_settings.h"
#include "common/c_converter.h"
#include "common/c_content.h"
#include "cpp_api/s_async.h"
#include "network/networkprotocol.h"
#include "serialization.h"
#include <json/json.h>
#include <zstd.h>
#include "cpp_api/s_security.h"
#include "porting.h"
#include "convert_json.h"
#include "debug.h"
#include "log.h"
#include "log_internal.h"
#include "tool.h"
#include "filesys.h"
#include "settings.h"
#include "util/auth.h"
#include "util/base64.h"
#include "config.h"
#include "version.h"
#include "util/hex.h"
#include "util/sha1.h"
#include "my_sha256.h"
#include "util/png.h"
#include "player.h"
#include "daynightratio.h"
#include <cstdio>
+ Include dependency graph for l_util.cpp:

Macros

#define ZSTD_CLEVEL_DEFAULT   3
 

Enumerations

enum  LuaCompressMethod { LUA_COMPRESS_METHOD_DEFLATE , LUA_COMPRESS_METHOD_ZSTD }
 

Functions

static LuaCompressMethod get_compress_method (lua_State *L, int index)
 

Variables

static constexpr u16 MAX_JSON_DEPTH = 1024
 
static const struct EnumString es_LuaCompressMethod []
 

Macro Definition Documentation

◆ ZSTD_CLEVEL_DEFAULT

#define ZSTD_CLEVEL_DEFAULT   3

Referenced by ModApiUtil::l_compress().

Enumeration Type Documentation

◆ LuaCompressMethod

Enumerator
LUA_COMPRESS_METHOD_DEFLATE 
LUA_COMPRESS_METHOD_ZSTD 

Function Documentation

◆ get_compress_method()

static LuaCompressMethod get_compress_method ( lua_State * L,
int index )
static

References es_LuaCompressMethod, log_deprecated(), LUA_COMPRESS_METHOD_DEFLATE, and string_to_enum().

Referenced by ModApiUtil::l_compress(), and ModApiUtil::l_decompress().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ es_LuaCompressMethod

const struct EnumString es_LuaCompressMethod[]
static
Initial value:
=
{
{0, nullptr},
}
@ LUA_COMPRESS_METHOD_ZSTD
Definition l_util.cpp:287
@ LUA_COMPRESS_METHOD_DEFLATE
Definition l_util.cpp:286

Referenced by get_compress_method().

◆ MAX_JSON_DEPTH

u16 MAX_JSON_DEPTH = 1024
staticconstexpr