MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lualib_net_read_until_string_impl

Function lualib_net_read_until_string_impl

src/Chain/libraries/glua/lnetlib.cpp:320–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320int 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
328int lualib_net_read_until_impl(lua_State *L, TcpSocket *socket, std::vector<char> &end)
329{

Callers 3

lualib_http_requestFunction · 0.85
lualib_http_acceptFunction · 0.85
lualib_net_read_untilFunction · 0.85

Calls 2

push_backMethod · 0.45

Tested by

no test coverage detected