Home
last modified time | relevance | path

Searched refs:base_ptr_ (Results 1 – 3 of 3) sorted by relevance

/system/libziparchive/
Dzip_archive_private.h38 : has_fd_(true), fd_(fd), fd_offset_(0), base_ptr_(nullptr), data_length_(-1) {} in MappedZipFile()
41 : has_fd_(true), fd_(fd), fd_offset_(offset), base_ptr_(nullptr), data_length_(length) {} in MappedZipFile()
44 : has_fd_(false), fd_(-1), fd_offset_(0), base_ptr_(address), in MappedZipFile()
69 const void* const base_ptr_; variable
75 CentralDirectory(void) : base_ptr_(nullptr), length_(0) {} in CentralDirectory()
77 const uint8_t* GetBasePtr() const { return base_ptr_; } in GetBasePtr()
84 const uint8_t* base_ptr_;
Dzip_archive_test.cc71 base_ptr_ = reinterpret_cast<uint8_t*>(&joined_names_[0]); in SetUp()
80 std::string_view{joined_names_.c_str() + offset, name.size()}, base_ptr_); in SetUp()
95 uint8_t* base_ptr_{nullptr}; // Points to the start of the central directory. member in CdEntryMapTest
101 ASSERT_NE(0, cd_map->AddToMap(name, base_ptr_)); in TEST_F()
109 auto [status, offset] = cd_map->GetCdEntryOffset(name, base_ptr_); in TEST_F()
122 auto ret = cd_map->Next(base_ptr_); in TEST_F()
126 ret = cd_map->Next(base_ptr_); in TEST_F()
Dzip_archive.cc1544 return base_ptr_; in GetBasePtr()
1562 if (base_ptr_ == nullptr) { in GetFileLength()
1610 memcpy(buf, static_cast<const uint8_t*>(base_ptr_) + off, len); in ReadAtOffset()
1617 base_ptr_ = static_cast<const uint8_t*>(map_base_ptr) + cd_start_offset; in Initialize()