pub fn twox_256(data: &[u8]) -> [u8; 32] {
	let mut result: [u8; 32] = Default::default();
	unsafe {
		ext_twox_256.get()(data.as_ptr(), data.len() as u32, result.as_mut_ptr());
	}
	result
}
/// Conduct four XX hashes to give a 256-bit result.
Conduct four XX hashes to give a 256-bit result.
Conduct four XX hashes to give a 256 - bit result .
pub fn twox_256(data: &[u8]) -> [u8; 32] {
	let mut result: [u8; 32] = Default::default();
	unsafe {
		ext_twox_256.get()(data.as_ptr(), data.len() as u32, result.as_mut_ptr());
	}
	result
}
pub fn twox_256 ( data : & [ u8 ] ) -> [ u8 ; 32 ] { let mut result : [ u8 ; 32 ] = Default :: default ( ) ; unsafe { ext_twox_256 . get ( ) ( data . as_ptr ( ) , data . len ( ) as u32 , result . as_mut_ptr ( ) ) ; } result }
Conduct four XX hashes to give a 256-bit result.
Conduct four XX hashes to give a 256 - bit result .
data
&[u8]
data
&[u8]