b.k.KnitContentFactory(ContentFactory) : class documentation

Part of bzrlib.knit View In Hierarchy

Content factory for streaming from knits.
See Also
Method __init__ Create a KnitContentFactory for key.
Method get_bytes_as Undocumented
Method _create_network_bytes Create a fully serialised network version for transmission.
def __init__(self, key, parents, build_details, sha1, raw_record, annotated, knit=None, network_bytes=None):
Create a KnitContentFactory for key.
ParameterskeyThe key.
parentsThe parents.
build_detailsThe build details as returned from get_build_details.
sha1The sha1 expected from the full text of this object.
raw_recordThe bytes of the knit data from disk.
annotatedTrue if the raw data is annotated.
network_bytesNone to calculate the network bytes on demand, not-none if they are already known.
def _create_network_bytes(self):
Create a fully serialised network version for transmission.
def get_bytes_as(self, storage_kind):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.