Lines Matching refs:start_byte
574 def read_file(self, head_cluster, start_byte, size): argument
591 if start_byte + size > self.bytes_per_cluster:
592 size_now = self.bytes_per_cluster - start_byte
594 if start_byte < self.bytes_per_cluster:
599 bytes_from_root = cluster_bytes_from_root + start_byte
609 start_byte -= self.bytes_per_cluster
611 if start_byte < 0:
612 start_byte = 0
713 def write_file(self, head_cluster, start_byte, data): argument
722 last_offset = start_byte + len(data)
728 data_begin = max(0, current_offset - start_byte)
730 current_offset + self.bytes_per_cluster - start_byte)
734 f.seek(cluster_file_offset + max(0, start_byte - current_offset))