Lines Matching refs:bytes
149 size_t bytes = memory->Read(*addr, reinterpret_cast<uint8_t*>(out), len); in dump_memory() local
150 if (bytes % sizeof(uintptr_t) != 0) { in dump_memory()
152 ALOGE("Bytes read %zu, is not a multiple of %zu", bytes, sizeof(uintptr_t)); in dump_memory()
153 bytes &= ~(sizeof(uintptr_t) - 1); in dump_memory()
157 if (bytes == 0) { in dump_memory()
169 if (bytes < len && !skip_2nd_read) { in dump_memory()
176 size_t bytes2 = memory->Read(*addr + bytes, static_cast<uint8_t*>(out) + bytes, len - bytes); in dump_memory()
177 bytes += bytes2; in dump_memory()
178 if (bytes2 > 0 && bytes % sizeof(uintptr_t) != 0) { in dump_memory()
180 ALOGE("Bytes after second read %zu, is not a multiple of %zu", bytes, sizeof(uintptr_t)); in dump_memory()
181 bytes &= ~(sizeof(uintptr_t) - 1); in dump_memory()
187 if (bytes == 0) { in dump_memory()
191 for (uint64_t tag_granule = 0; tag_granule < bytes / kTagGranuleSize; ++tag_granule) { in dump_memory()
200 return bytes; in dump_memory()
208 ssize_t bytes = dump_memory(data, sizeof(data), tags, sizeof(tags), &addr, memory); in dump_memory() local
209 if (bytes == -1) { in dump_memory()
223 for (size_t line = 0; line < static_cast<size_t>(bytes) / MEMORY_BYTES_PER_LINE; line++) { in dump_memory()