MCPcopy Create free account
hub / github.com/ActiveState/code / read_block

Method read_block

recipes/Python/492211_dal3py/recipe-492211.py:401–404  ·  view source on GitHub ↗
(self, block)

Source from the content-addressed store, hash-verified

399
400 # Read A Block
401 def read_block(self, block):
402 assert type(block) is int and 1 <= block <= self.__blocks
403 assert self.__disk.status(block) == self.STATUS.b1
404 return self.__disk.read(block)
405
406 # Write A Block
407 def write_block(self, block, data):

Callers 1

read_fileMethod · 0.80

Calls 2

statusMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected