def storeblk(self, blk, buf): memcpy(self.datab[self.blksize * blk : self.blksize * (blk+1)], buf)
def loadblk(self, blk, buf): x = self.datab[self.blksize * blk : self.blksize * (blk+1)] memcpy(buf, x)