Lines Matching defs:size
526 # the largest or if the byte size is within the current
555 """Takes a file action and returns the over-the-wire size of
556 a package as an integer. The OTW size is the compressed size,
557 pkg.csize. If that value isn't available, it returns pkg.size.
558 If pkg.size isn't available, return zero."""
560 size = action.attrs.get("pkg.csize")
561 if size is None:
562 size = action.attrs.get("pkg.size", 0)
564 return int(size)
573 'length' should be an integer value representing the size of
654 """Used by compute_compressed_attrs to calculate data size and compute
660 computing size and hashes."""
681 def size(self):
682 """Return the size of the file."""
695 def compute_compressed_attrs(fname, file_path=None, data=None, size=None,
697 """Returns the size and one or more hashes of the compressed data. If
749 nbuf = size // bufsz
760 csize = str(fobj.size)
802 # environment based on pointer size.
1393 # Setting the python file buffer size to 128k gives substantial performance
1667 """Return the size (in bytes) of a directory and all of its contents."""
1859 def truncate_file(f, size=0):
1862 f.truncate(size)