fills in the buffer with network stats pass NULL to reset the stats
| 2670 | // fills in the buffer with network stats |
| 2671 | // pass NULL to reset the stats |
| 2672 | void nw_GetNetworkStats(tNetworkStatus *stats) { |
| 2673 | if (!stats) { |
| 2674 | // reset the stats |
| 2675 | memset(&NetStatistics, 0, sizeof(NetStatistics)); |
| 2676 | return; |
| 2677 | } |
| 2678 | |
| 2679 | memcpy(stats, &NetStatistics, sizeof(NetStatistics)); |
| 2680 | } |
no outgoing calls
no test coverage detected