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

Method read

plugins/idb_import/src/lib.rs:81–88  ·  view source on GitHub ↗
(&mut self, buf: &mut [u8])

Source from the content-addressed store, hash-verified

79}
80impl std::io::Read for BinaryViewReader<'_> {
81 fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
82 if !self.bv.offset_valid(self.offset) {
83 return Err(std::io::Error::new(std::io::ErrorKind::UnexpectedEof, ""));
84 }
85 let len = self.bv.read(buf, self.offset);
86 self.offset += u64::try_from(len).unwrap();
87 Ok(len)
88 }
89}
90
91impl std::io::Seek for BinaryViewReader<'_> {

Callers 1

make_lengthy_typeMethod · 0.45

Calls 1

offset_validMethod · 0.45

Tested by

no test coverage detected