:py:mod:`dissect.ole.ole` ========================= .. py:module:: dissect.ole.ole Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.ole.ole.OLE dissect.ole.ole.DirectoryEntry dissect.ole.ole.Chain dissect.ole.ole.MiniChain dissect.ole.ole.ChainStream .. py:class:: OLE(fh) .. py:attribute:: dirlist .. py:method:: get(name) .. py:method:: listdir() .. py:method:: directory(sid) .. py:method:: fat(sect) .. py:method:: minifat(sect) .. py:method:: chain(sect, size=None) .. py:method:: minichain(sect, size=None) .. py:class:: DirectoryEntry(ole, sid) .. py:property:: child .. py:property:: left_sibling .. py:property:: right_sibling .. py:property:: has_child .. py:property:: has_left_sibling .. py:property:: has_right_sibling .. py:property:: is_minifat .. py:property:: is_red .. py:property:: is_black .. py:property:: is_valid .. py:property:: is_stream .. py:property:: is_storage .. py:method:: __repr__() Return repr(self). .. py:method:: open() .. py:method:: walk() .. py:class:: Chain(ole, sect, size=None) .. py:method:: __len__() .. py:method:: __iter__() .. py:method:: __getitem__(i) .. py:method:: open() .. py:method:: fill() .. py:class:: MiniChain(ole, sect, size=None) Bases: :py:obj:`Chain` .. py:method:: open() .. py:class:: ChainStream(stream, chain, sector_size, offset=0) Bases: :py:obj:`dissect.util.stream.AlignedStream` Basic buffered stream that provides easy aligned reads. Must be subclassed for various stream implementations. Subclasses can implement: - _read(offset, length) - _seek(pos, whence=io.SEEK_SET) The offset and length for _read are guaranteed to be aligned. The only time that overriding _seek would make sense is if there's no known size of your stream, but still want to provide SEEK_END functionality. Most subclasses of AlignedStream take one or more file-like objects as source. Operations on these subclasses, like reading, will modify the source file-like object as a side effect. :param size: The size of the stream. This is used in read and seek operations. None if unknown. :param align: The alignment size. Read operations are aligned on this boundary. Also determines buffer size.