:py:mod:`dissect.executable.pe.directory.com_descriptor` ======================================================== .. py:module:: dissect.executable.pe.directory.com_descriptor Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.executable.pe.directory.com_descriptor.ComDescriptorDirectory dissect.executable.pe.directory.com_descriptor.ComMetadata dissect.executable.pe.directory.com_descriptor.ComStream .. py:class:: ComDescriptorDirectory(pe: dissect.executable.pe.pe.PE, address: int, size: int) Bases: :py:obj:`dissect.executable.pe.directory.base.DataDirectory` The COM descriptor directory of a PE file. .. rubric:: References - https://www.codeproject.com/Articles/12585/The-NET-File-Format .. py:property:: descriptor :type: dissect.executable.pe.c_pe.c_pe.IMAGE_COR20_HEADER The CLR 2.0 header descriptor. .. py:property:: metadata :type: ComMetadata The COM metadata directory. .. py:class:: ComMetadata(pe: dissect.executable.pe.pe.PE, address: int, size: int) Bases: :py:obj:`dissect.executable.pe.directory.base.DataDirectory` The COM metadata directory of the COM descriptor. .. py:property:: metadata :type: dissect.executable.pe.c_pe.c_pe.IMAGE_COR20_METADATA The CLR 2.0 metadata descriptor. .. py:property:: version :type: str The version as defined in the metadata. .. py:property:: streams :type: list[ComStream] A list of streams defined in the metadata. .. py:class:: ComStream(metadata: ComMetadata, offset: int, size: int, name: str) A stream in the COM metadata. .. py:attribute:: metadata .. py:attribute:: offset .. py:attribute:: size .. py:attribute:: name .. py:method:: __repr__() -> str .. py:property:: data :type: bytes The data of the stream. .. py:method:: open() -> BinaryIO Open the stream for reading.