MCPcopy Create free account
hub / github.com/Tencent/UnLua / NewUserdata

Function NewUserdata

Plugins/UnLua/Source/UnLua/Private/UnLuaBase.cpp:344–347  ·  view source on GitHub ↗

* Allocate user data */

Source from the content-addressed store, hash-verified

342 * Allocate user data
343 */
344 void* NewUserdata(lua_State *L, int32 Size, const char *MetatableName, int32 Alignment)
345 {
346 return ::NewUserdataWithPadding(L, Size, MetatableName, CalcUserdataPadding(Alignment));
347 }
348
349 /**
350 * Push an untyped dynamic array (same memory layout with TArray)

Callers 4

NewArrayMethod · 0.85
NewSetMethod · 0.85
NewMapMethod · 0.85
PushMethod · 0.85

Calls 2

NewUserdataWithPaddingFunction · 0.85
CalcUserdataPaddingFunction · 0.70

Tested by

no test coverage detected