MCPcopy Create free account
hub / github.com/Vectorized/function-selector-miner / fill

Method fill

src/sponge.rs:24–32  ·  view source on GitHub ↗
(
        &mut self,
        function_name: &SmallString,
        nonce: u64,
        function_params: &SmallString,
    )

Source from the content-addressed store, hash-verified

22 /// This function is unsafe because it writes to a union type.
23 #[inline(always)]
24 pub unsafe fn fill<const N: usize>(
25 &mut self,
26 function_name: &SmallString,
27 nonce: u64,
28 function_params: &SmallString,
29 ) {
30 let o = self.fill_sponge::<N>(function_name, nonce, function_params);
31 self.chars[o] = 0x01;
32 }
33
34 /// # Safety
35 ///

Callers 1

fill_spongeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected