MCPcopy Create free account
hub / github.com/Tencent/xLua / bytesCheck

Method bytesCheck

Assets/XLua/Src/ObjectCasters.cs:85–88  ·  view source on GitHub ↗
(RealStatePtr L, int idx)

Source from the content-addressed store, hash-verified

83 }
84
85 private bool bytesCheck(RealStatePtr L, int idx)
86 {
87 return LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TSTRING || LuaAPI.lua_isnil(L, idx) || (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TUSERDATA && translator.SafeGetCSObj(L, idx) is byte[]);
88 }
89
90 private bool boolCheck(RealStatePtr L, int idx)
91 {

Callers

nothing calls this directly

Calls 3

lua_typeMethod · 0.80
lua_isnilMethod · 0.80
SafeGetCSObjMethod · 0.80

Tested by

no test coverage detected