Returns the number of samples that have been collected.
(&self)
| 151 | |
| 152 | /// Returns the number of samples that have been collected. |
| 153 | pub fn num_samples(&self) -> u32 { |
| 154 | self.samples |
| 155 | } |
| 156 | |
| 157 | fn finalize(&mut self) { |
| 158 | self.data[..4].copy_from_slice(&self.samples.to_le_bytes()); |