Searched refs:copy_bytes (Results 1 – 2 of 2) sorted by relevance
84 size_t copy_bytes = MIN(sizeof(word_t) - align_bytes, bytes); in Read()85 memcpy(buffer, reinterpret_cast<uint8_t*>(&data_word) + align_bytes, copy_bytes); in Read()86 addr += copy_bytes; in Read()87 buffer += copy_bytes; in Read()88 bytes -= copy_bytes; in Read()89 bytes_read += copy_bytes; in Read()
148 size_t copy_bytes = std::min(sizeof(long) - align_bytes, bytes); in Read() local149 memcpy(dst, reinterpret_cast<uint8_t*>(&data) + align_bytes, copy_bytes); in Read()150 addr += copy_bytes; in Read()151 dst = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(dst) + copy_bytes); in Read()152 bytes -= copy_bytes; in Read()153 bytes_read += copy_bytes; in Read()