| 832 | } |
| 833 | |
| 834 | ByteString tpt_lua_checkByteString(lua_State *L, int index) |
| 835 | { |
| 836 | size_t size; |
| 837 | if (auto *data = luaL_checklstring(L, index, &size)) |
| 838 | { |
| 839 | return ByteString(data, size); |
| 840 | } |
| 841 | return {}; |
| 842 | } |
| 843 | |
| 844 | String tpt_lua_checkString(lua_State *L, int index, bool ignoreError) |
| 845 | { |
no test coverage detected