def METHOD_NAME(self, file, compress=None, origin=None, canonicalize=False):
    l = len(self.salt)
    file.write(struct.pack("!BBHB", self.algorithm, self.flags,
                           self.iterations, l))
    file.write(self.salt)
    l = len(self.next)
    file.write(struct.pack("!B", l))
    file.write(self.next)
    Bitmap(self.windows).to_wire(file)