def write(self, ostream):
        tstream = BytearrayStream()

        self.extension_name.write(tstream)

        if self.extension_tag is not None:
            self.extension_tag.write(tstream)
        if self.extension_type is not None:
            self.extension_type.write(tstream)

        self.length = tstream.length()
        super(ExtensionInformation, self).write(ostream)
        ostream.write(tstream.buffer)
Write the data encoding the ExtensionInformation object to a stream.
dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/core/objects.py/ExtensionInformation.write