b.p.ContainerSerialiser(object) : class documentation

Part of bzrlib.pack View In Hierarchy

A helper class for serialising containers.

It simply returns bytes from method calls to 'begin', 'end' and 'bytes_record'. You may find ContainerWriter to be a more convenient interface.

Method begin Return the bytes to begin a container.
Method end Return the bytes to finish a container.
Method bytes_record Return the bytes for a Bytes record with the given name and
def begin(self):
Return the bytes to begin a container.
def end(self):
Return the bytes to finish a container.
def bytes_record(self, bytes, names):
Return the bytes for a Bytes record with the given name and contents.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.