RawGetInt returns an LValue at position `key` without __index metamethod.
(key int)
| 281 | |
| 282 | // RawGetInt returns an LValue at position `key` without __index metamethod. |
| 283 | func (tb *LTable) RawGetInt(key int) LValue { |
| 284 | if tb.array == nil { |
| 285 | return LNil |
| 286 | } |
| 287 | index := int(key) - 1 |
| 288 | if index >= len(tb.array) || index < 0 { |
| 289 | return LNil |
| 290 | } |
| 291 | return tb.array[index] |
| 292 | } |
| 293 | |
| 294 | // RawGet returns an LValue associated with a given key without __index metamethod. |
| 295 | func (tb *LTable) RawGetH(key LValue) LValue { |
no outgoing calls