MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / readblocks

Method readblocks

mpython/extFlash/lib/flashbdev.py:30–31  ·  view source on GitHub ↗
(self, n, buf, offset=0)

Source from the content-addressed store, hash-verified

28 self.sectorsize = flash.flash_sectorsize()
29
30 def readblocks(self, n, buf, offset=0):
31 self.flash.flash_read(n * self.sectorsize + offset, buf)
32
33 def writeblocks(self, n, buf, offset=0):
34 if offset == 0:

Callers

nothing calls this directly

Calls 1

flash_readMethod · 0.80

Tested by

no test coverage detected