| 318 | } |
| 319 | |
| 320 | int lualib_net_read_until_string_impl(lua_State *L, TcpSocket *socket, const char *end) |
| 321 | { |
| 322 | std::vector<char> end_vector; |
| 323 | for (size_t i = 0; i < strlen(end); ++i) |
| 324 | end_vector.push_back(end[i]); |
| 325 | return lualib_net_read_until_impl(L, socket, end_vector); |
| 326 | } |
| 327 | |
| 328 | int lualib_net_read_until_impl(lua_State *L, TcpSocket *socket, std::vector<char> &end) |
| 329 | { |
no test coverage detected