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

Method read

recipes/Python/492210_dal2py/recipe-492210.py:33–37  ·  view source on GitHub ↗
(self, block)

Source from the content-addressed store, hash-verified

31
32 # Read A Block
33 def read(self, block):
34 assert type(block) is int and 0 <= block < self.__blocks
35 assert self.__BIT[block] != 0
36 return self.__disk.read(self.__index + block * self.__disk.SIZE, \
37 self.__disk.SIZE)
38
39 # Write A Block
40 def write(self, block, data):

Callers 3

testFunction · 0.95
loadMethod · 0.45
__hardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected