(ptr: &SBValue, len: usize)
| 620 | } |
| 621 | |
| 622 | fn 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 | |
| 634 | pub(crate) fn enumerate_value<'a>( |
| 635 | vtype: &'a SBType, |
no test coverage detected