Lines Matching refs:byte_count
49 bool ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) override;
89 bool ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) override;
160 bool MemoryPackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset() argument
161 if (byte_count > package_size_ || offset > package_size_ - byte_count) { in ReadFullyAtOffset()
162 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset()
166 memcpy(buffer, addr_ + offset, byte_count); in ReadFullyAtOffset()
211 bool FilePackage::ReadFullyAtOffset(uint8_t* buffer, uint64_t byte_count, uint64_t offset) { in ReadFullyAtOffset() argument
212 if (byte_count > package_size_ || offset > package_size_ - byte_count) { in ReadFullyAtOffset()
213 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset()
218 if (!android::base::ReadFullyAtOffset(fd_.get(), buffer, byte_count, offset)) { in ReadFullyAtOffset()
219 PLOG(ERROR) << "Failed to read " << byte_count << " bytes data at offset " << offset; in ReadFullyAtOffset()