(set_count: usize)
| 239 | #[cfg(any(windows, target_os = "wasi"))] |
| 240 | #[inline] |
| 241 | fn fd_set_num_elements_for_fd_array_raw(set_count: usize) -> usize { |
| 242 | // Allocate space for an `fd_count` field, plus `set_count` elements |
| 243 | // for the `fd_array` field. |
| 244 | div_ceil( |
| 245 | core::cmp::max(align_of::<FD_SET>(), align_of::<RawFd>()) + set_count * size_of::<RawFd>(), |
| 246 | size_of::<FdSetElement>(), |
| 247 | ) |
| 248 | } |
| 249 | |
| 250 | /// `fd_set_num_elements` implementation on platforms with bitvector |
| 251 | /// implementations. |
no test coverage detected