MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / make_array_result

Function make_array_result

src/hx/libs/std/Socket.cpp:667–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667static Array<Dynamic> make_array_result( Array<Dynamic> a, fd_set *tmp )
668{
669 if (!tmp || !a.mPtr)
670 return null();
671
672 int len = a->length;
673 Array<Dynamic> r = Array_obj<Dynamic>::__new();
674 for(int i=0;i<len;i++)
675 {
676 Dynamic s = a[i];
677 if( FD_ISSET(val_sock(s),tmp) )
678 r->push(s);
679 }
680 return r;
681}
682
683static void make_array_result_inplace(Array<Dynamic> a, fd_set *tmp)
684{

Callers 1

_hx_std_socket_selectFunction · 0.85

Calls 4

__newFunction · 0.85
val_sockFunction · 0.85
nullClass · 0.50
pushMethod · 0.45

Tested by

no test coverage detected