MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / read_vec

Method read_vec

rust/src/binary_view.rs:213–220  ·  view source on GitHub ↗

Reads up to `len` bytes from address `offset`

(&self, offset: u64, len: usize)

Source from the content-addressed store, hash-verified

211
212 /// Reads up to `len` bytes from address `offset`
213 fn read_vec(&self, offset: u64, len: usize) -> Vec<u8> {
214 let mut ret = vec![0; len];
215
216 let size = self.read(&mut ret, offset);
217 ret.truncate(size);
218
219 ret
220 }
221
222 /// Appends up to `len` bytes from address `offset` into `dest`
223 fn read_into_vec(&self, dest: &mut Vec<u8>, offset: u64, len: usize) -> usize {

Callers 7

test_binary_savingFunction · 0.80
is_pdbFunction · 0.80
parse_infoMethod · 0.80
create_section_readerFunction · 0.80
get_build_idFunction · 0.80
basic_block_guidFunction · 0.80

Implementers 1

binary_view.rsrust/src/binary_view.rs

Calls 2

truncateMethod · 0.80
readMethod · 0.45

Tested by 1

test_binary_savingFunction · 0.64