MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaS_eqlngstr

Function luaS_eqlngstr

freebsd/contrib/openzfs/module/lua/lstring.c:32–38  ·  view source on GitHub ↗

** equality for long strings */

Source from the content-addressed store, hash-verified

30** equality for long strings
31*/
32int luaS_eqlngstr (TString *a, TString *b) {
33 size_t len = a->tsv.len;
34 lua_assert(a->tsv.tt == LUA_TLNGSTR && b->tsv.tt == LUA_TLNGSTR);
35 return (a == b) || /* same instance or... */
36 ((len == b->tsv.len) && /* equal length and ... */
37 (memcmp(getstr(a), getstr(b), len) == 0)); /* equal contents */
38}
39
40
41/*

Callers 2

luaV_equalobj_Function · 0.85
luaS_eqstrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected