dissect.thumbcache.index#

Module Contents#

Classes#

Attributes#

dissect.thumbcache.index.INDEX_ENTRIES#
dissect.thumbcache.index.MAX_IMM_OFFSET = 4#
dissect.thumbcache.index.BYTES_IN_NUMBER = 4#
dissect.thumbcache.index.IDENTIFIER_BYTES = 8#
class dissect.thumbcache.index.ThumbnailIndex(fh: BinaryIO)#
property header: dissect.cstruct.Structure#
property version: int#
property type: dissect.thumbcache.util.ThumbnailType#
property total_entries: int#
property used_entries: int#
entries() Iterator[IndexEntry]#

Returns all index entries that are actually used.

class dissect.thumbcache.index.IndexEntry(fh: BinaryIO, type: dissect.thumbcache.util.ThumbnailType)#
property header: dissect.cstruct.Structure#
property identifier: bytes#
property flags: int#
property cache_offsets: list[int]#

Retrieves the index data entries.

These are offsets into the thumbcache files, where the order specifies in which of the files. More information about the order can be found in Thumbcache.

property last_modified: datetime.datetime#
in_use() bool#
__repr__() str#

Return repr(self).