MCPcopy Create free account
hub / github.com/c2pain/RustPatchlessCLRLoader / set_bits

Function set_bits

src/main.rs:85–88  ·  view source on GitHub ↗
(dw: u64, low_bit: i32, bits: i32, new_value: u64)

Source from the content-addressed store, hash-verified

83}
84
85fn set_bits(dw: u64, low_bit: i32, bits: i32, new_value: u64) -> u64 {
86 let mask = (1 << bits) - 1;
87 (dw & !(mask << low_bit)) | (new_value << low_bit)
88}
89
90fn clear_breakpoint(ctx: &mut CONTEXT, index: i32) {
91 match index {

Callers 2

clear_breakpointFunction · 0.85
enable_breakpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected