Home
last modified time | relevance | path

Searched refs:file_size_ (Results 1 – 7 of 7) sorted by relevance

/art/runtime/base/unix_file/
Dmapped_file.cc48 file_size_ = st.st_size; in MapReadOnly()
50 mapped_file_ = mmap(NULL, file_size_, PROT_READ, MAP_PRIVATE, Fd(), 0); in MapReadOnly()
54 << file_size_ << " bytes to memory"; in MapReadOnly()
70 file_size_ = file_size; in MapReadWrite()
73 mmap(NULL, file_size_, PROT_READ | PROT_WRITE, MAP_SHARED, Fd(), 0); in MapReadWrite()
77 << file_size_ << " bytes to memory"; in MapReadWrite()
86 int result = TEMP_FAILURE_RETRY(munmap(mapped_file_, file_size_)); in Unmap()
89 << file_size_; in Unmap()
93 file_size_ = -1; in Unmap()
104 int64_t read_size = std::max(0LL, std::min(byte_count, file_size_ - offset)); in Read()
[all …]
Dmapped_file.h39 MappedFile() : FdFile(), file_size_(-1), mapped_file_(NULL) { in MappedFile()
43 explicit MappedFile(int fd) : FdFile(fd), file_size_(-1), mapped_file_(NULL) { in MappedFile()
88 mutable int64_t file_size_; // May be updated in GetLength(). variable
/art/compiler/
Doat_writer.cc129 offset += dex_file->GetHeader().file_size_; in InitDexFiles()
526 if (!out.WriteFully(&dex_file->GetHeader(), dex_file->GetHeader().file_size_)) { in WriteTables()
531 size_dex_file_ += dex_file->GetHeader().file_size_; in WriteTables()
/art/runtime/
Ddex_file_test.cc92 EXPECT_EQ(904U, header.file_size_); in TEST_F()
Doat_file.cc373 return reinterpret_cast<const DexFile::Header*>(dex_file_pointer_)->file_size_; in FileSize()
Ddex_file_verifier.cc138 uint32_t expected_size = header_->file_size_; in CheckHeader()
189 if (item->offset_ >= header_->file_size_) { in CheckMap()
190 …OR) << StringPrintf("Map item after end of file: %x, size %x", item->offset_, header_->file_size_); in CheckMap()
Ddex_file.h67 uint32_t file_size_; // size of entire file member