Searched defs:FileRegion (Results 1 – 1 of 1) sorted by relevance
37 struct FileRegion { struct38 FileRegion(borrowed_fd fd, off64_t offset, size_t length) in FileRegion() function55 const char* data() const { return mapped_ ? mapped_->data() : buffer_.data(); } in data()56 size_t size() const { return mapped_ ? mapped_->size() : buffer_.size(); } in size()62 std::unique_ptr<android::base::MappedFile> mapped_;63 std::string buffer_;