(text: T)
| 852 | /// A `u64` representing the checksum value of the input byte slice. |
| 853 | #[inline(always)] |
| 854 | pub fn bytesum<T>(text: T) -> u64 |
| 855 | where |
| 856 | T: AsRef<[u8]>, |
| 857 | { |
| 858 | let text_ref = text.as_ref(); |
| 859 | let text_pointer = text_ref.as_ptr() as _; |
| 860 | let text_length = text_ref.len(); |
| 861 | unsafe { sz_bytesum(text_pointer, text_length) } |
| 862 | } |
| 863 | |
| 864 | /// Moves the contents of `source` into `target`, overwriting the existing contents of `target`. |
| 865 | /// This function is useful for scenarios where you need to replace the contents of a byte slice |
no test coverage detected
searching dependent graphs…