MCPcopy Index your code
hub / github.com/yuin/gopher-lua / NewTable

Method NewTable

state.go:1604–1606  ·  view source on GitHub ↗

* }}} */ * object allocation {{{ */

()

Source from the content-addressed store, hash-verified

1602/* object allocation {{{ */
1603
1604func (ls *LState) NewTable() *LTable {
1605 return newLTable(defaultArrayCap, defaultHashCap)
1606}
1607
1608func (ls *LState) CreateTable(acap, hcap int) *LTable {
1609 return newLTable(acap, hcap)

Callers 15

NewTypeMetatableMethod · 0.95
OpenPackageFunction · 0.45
osDateFunction · 0.45
baseNewProxyFunction · 0.45
TestCheckStringFunction · 0.45
TestCheckTableFunction · 0.45
TestOptTableFunction · 0.45
debugGetInfoFunction · 0.45
TestGetAndReplaceFunction · 0.45
TestToIntFunction · 0.45
TestToInt64Function · 0.45
TestToNumberFunction · 0.45

Calls 1

newLTableFunction · 0.85

Tested by 10

TestCheckStringFunction · 0.36
TestCheckTableFunction · 0.36
TestOptTableFunction · 0.36
TestGetAndReplaceFunction · 0.36
TestToIntFunction · 0.36
TestToInt64Function · 0.36
TestToNumberFunction · 0.36
TestToStringFunction · 0.36
TestToTableFunction · 0.36
TestObjLenFunction · 0.36