MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / required_bytes

Method required_bytes

hail-fuzz/src/load_resizer.rs:534–541  ·  view source on GitHub ↗

Return the amount of bytes required for the load operation (Note: we do not allow the starting address of the load to be adjusted, and require the size to be a power of 2).

(&self)

Source from the content-addressed store, hash-verified

532 /// Return the amount of bytes required for the load operation (Note: we do not allow the
533 /// starting address of the load to be adjusted, and require the size to be a power of 2).
534 fn required_bytes(&self) -> u8 {
535 if self.max_bit < self.min_bit {
536 // No bits are used.
537 return 0;
538 }
539 let required_bits = self.max_bit + 1;
540 (required_bits.next_power_of_two() / 8).max(1)
541 }
542
543 fn required_bits(&self) -> u8 {
544 if self.max_bit < self.min_bit {

Callers 2

resize_loadsMethod · 0.45
push_with_resizeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected