Lines Matching refs:amount
81 def seek(self, amount, direction=0): argument
84 self.idx += amount
86 self.idx = self.size - amount
88 self.idx = amount
632 def allocate(self, amount): argument
637 assert amount > 0, "Must allocate a non-zero amount."
670 while grabbed < amount and len(free_zones) > 0:
675 if grabbed < amount:
678 excess = (grabbed - amount) / self.bytes_per_cluster
696 def extend_cluster(self, cluster, amount): argument
701 if amount == 0:
708 return_cluster = self.allocate(amount)