MCPcopy Create free account
hub / github.com/coreboot/coreboot / read

Method read

util/me_cleaner/me_cleaner.py:49–53  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

47 self.region_end = region_end
48
49 def read(self, n):
50 if f.tell() + n <= self.region_end:
51 return self.f.read(n)
52 else:
53 raise OutOfRegionException()
54
55 def readinto(self, b):
56 if f.tell() + len(b) <= self.region_end:

Callers 15

options_checksum_validFunction · 0.80
get_cmos_valueFunction · 0.80
set_cmos_valueFunction · 0.80
spi_flash_readFunction · 0.80
mdio_readFunction · 0.80
check_pi_imgFunction · 0.80
readFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
sifive-gpt.pyFile · 0.80

Calls 1

Tested by

no test coverage detected