Lines Matching refs:byte_count
57 bool ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) override;
105 bool ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) override;
176 bool MemoryPackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset() argument
177 if (byte_count > package_size_ || offset > package_size_ - byte_count) { in ReadFullyAtOffset()
178 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset()
182 memcpy(buffer, addr_ + offset, byte_count); in ReadFullyAtOffset()
227 bool FilePackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset() argument
228 if (byte_count > package_size_ || offset > package_size_ - byte_count) { in ReadFullyAtOffset()
229 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset()
234 if (!android::base::ReadFullyAtOffset(fd_.get(), buffer, byte_count, offset)) { in ReadFullyAtOffset()
235 PLOG(ERROR) << "Failed to read " << byte_count << " bytes data at offset " << offset; in ReadFullyAtOffset()