Lines Matching refs:bytes
104 static size_t PtraceRead(pid_t pid, uint64_t addr, void* dst, size_t bytes) {
107 if (__builtin_add_overflow(addr, bytes, &max_size)) {
118 size_t copy_bytes = std::min(sizeof(long) - align_bytes, bytes);
122 bytes -= copy_bytes;
126 for (size_t i = 0; i < bytes / sizeof(long); i++) {
136 size_t left_over = bytes & (sizeof(long) - 1);
279 size_t bytes = ProcessVmRead(pid_, addr, dst, size);
280 if (bytes > 0) {
282 return bytes;
284 bytes = PtraceRead(pid_, addr, dst, size);
285 if (bytes > 0) {
288 return bytes;
381 size_t bytes = memory->Read(addr, dst, size);
382 if (bytes != 0) {
383 return bytes;