MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / read_bytes

Function read_bytes

debugger/src/value/writer.rs:622–632  ·  view source on GitHub ↗
(ptr: &SBValue, len: usize)

Source from the content-addressed store, hash-verified

620}
621
622fn read_bytes(ptr: &SBValue, len: usize) -> Result<Vec<u8>> {
623 if len == 0 {
624 Ok(Vec::new())
625 } else {
626 if !ptr.is_valid() {
627 return Err(WriteErr);
628 }
629 let addr = ptr.value_as_unsigned(0);
630 read_process_memory(addr, len)
631 }
632}
633
634pub(crate) fn enumerate_value<'a>(
635 vtype: &'a SBType,

Callers 2

write_valueFunction · 0.85
read_strFunction · 0.85

Calls 3

read_process_memoryFunction · 0.85
value_as_unsignedMethod · 0.80
is_validMethod · 0.45

Tested by

no test coverage detected