OSTree.CommitSizesEntry

Fields

Name Type Access Description
archived int r/w compressed object size
checksum str r/w object checksum
objtype OSTree.ObjectType r/w object type
unpacked int r/w unpacked object size

Methods

class new (checksum, objtype, unpacked, archived)
  copy ()
  free ()

Details

class OSTree.CommitSizesEntry

Structure representing an entry in the “ostree.sizes” commit metadata. Each entry corresponds to an object in the associated commit.

New in version 2020.1.

classmethod new(checksum, objtype, unpacked, archived)
Parameters:
  • checksum (str) – object checksum
  • objtype (OSTree.ObjectType) – object type
  • unpacked (int) – unpacked object size
  • archived (int) – compressed object size
Returns:

a new OSTree.CommitSizesEntry

Return type:

OSTree.CommitSizesEntry or None

Create a new OSTree.CommitSizesEntry for representing an object in a commit’s “ostree.sizes” metadata.

New in version 2020.1.

copy()
Returns:a new copy of self
Return type:OSTree.CommitSizesEntry or None

Create a copy of the given self.

New in version 2020.1.

free()

Free given self.

New in version 2020.1.