MCPcopy Create free account
hub / github.com/apache/httpd / ap_ntoh64

Function ap_ntoh64

modules/lua/lua_request.c:2171–2189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2169}
2170
2171static apr_uint64_t ap_ntoh64(const apr_uint64_t *input)
2172{
2173 apr_uint64_t rval;
2174 unsigned char *data = (unsigned char *)&rval;
2175 if (APR_IS_BIGENDIAN) {
2176 return *input;
2177 }
2178
2179 data[0] = *input >> 56;
2180 data[1] = *input >> 48;
2181 data[2] = *input >> 40;
2182 data[3] = *input >> 32;
2183 data[4] = *input >> 24;
2184 data[5] = *input >> 16;
2185 data[6] = *input >> 8;
2186 data[7] = *input >> 0;
2187
2188 return rval;
2189}
2190
2191static int lua_websocket_greet(lua_State *L)
2192{

Callers 2

lua_websocket_readFunction · 0.85
lua_websocket_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected