Go to the documentation of this file.
16#ifndef LIEF_DSC_SUBCACHE_H
17#define LIEF_DSC_SUBCACHE_H
42 public iterator_facade_base<Iterator, std::random_access_iterator_tag,
43 std::unique_ptr<SubCache>, std::ptrdiff_t, SubCache*,
44 std::unique_ptr<SubCache>
49 using implementation = details::SubCacheIt;
51 Iterator(std::unique_ptr<details::SubCacheIt> impl);
56 Iterator& operator=(Iterator&&) noexcept;
59 bool operator<(const Iterator& rhs) const;
61 std::ptrdiff_t operator-(const Iterator& R) const;
63 Iterator& operator+=(std::ptrdiff_t n);
64 Iterator& operator-=(std::ptrdiff_t n);
66 friend
LIEF_API bool operator==(const Iterator& LHS, const Iterator& RHS);
68 friend
LIEF_API bool operator!=(const Iterator& LHS, const Iterator& RHS) {
75 std::unique_ptr<details::SubCacheIt> impl_;
79 SubCache(std::unique_ptr<details::SubCache> impl);
87 std::string
suffix()
const;
90 std::unique_ptr<const DyldSharedCache>
cache()
const;
95 std::ostream&
operator<<(std::ostream& os,
const SubCache& subcache);
98 std::unique_ptr<details::SubCache> impl_;
This class represents a dyld shared cache file.
Definition DyldSharedCache/DyldSharedCache.hpp:40
std::unique_ptr< SubCache > operator*() const
Iterator(std::unique_ptr< details::SubCacheIt > impl)
Iterator(const Iterator &)
Iterator(Iterator &&) noexcept
Iterator & operator=(const Iterator &)
This class represents a subcache in the case of large/split dyld shared cache.
Definition SubCache.hpp:38
std::unique_ptr< const DyldSharedCache > cache() const
The associated DyldSharedCache object for this subcache.
SubCache(std::unique_ptr< details::SubCache > impl)
sc_uuid_t uuid() const
The uuid of the subcache file.
uint64_t vm_offset() const
The offset of this subcache from the main cache base address.
std::string suffix() const
The file name suffix of the subCache file (e.g. .25.data, .03.development)
friend std::ostream & operator<<(std::ostream &os, const SubCache &subcache)
Definition DyldSharedCache/DyldSharedCache.hpp:35
Namespace related to the dyld shared cache support.
Definition caching.hpp:22
std::array< uint8_t, 16 > sc_uuid_t
UUID used in different places of the shared cache.
Definition uuid.hpp:26
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41