(set_count: usize, nfds: RawFd)
| 207 | /// contain up to `set_count` file descriptors with values less than `nfds`. |
| 208 | #[inline] |
| 209 | pub fn fd_set_num_elements(set_count: usize, nfds: RawFd) -> usize { |
| 210 | #[cfg(any(windows, target_os = "wasi"))] |
| 211 | { |
| 212 | let _ = nfds; |
| 213 | |
| 214 | fd_set_num_elements_for_fd_array(set_count) |
| 215 | } |
| 216 | |
| 217 | #[cfg(not(any(windows, target_os = "wasi")))] |
| 218 | { |
| 219 | let _ = set_count; |
| 220 | |
| 221 | fd_set_num_elements_for_bitvector(nfds) |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | /// `fd_set_num_elements` implementation on platforms with fd array |
| 226 | /// implementations. |
nothing calls this directly
no test coverage detected