4 ms·
for(Size i = 0; i < this->_memoryLength; i++) { *(this->_data + i) = *(sequence->_bytes + i); } I'd rather use std::memcpy.
by HelloNurse 9y ago
for(Size i = 0; i < this->_memoryLength; i++) {
*(this->_data + i) = *(sequence->_bytes + i);
}
I'd rather use std::memcpy.
- jcelerier 9y agoor even `std::copy_n(sequence->_bytes, _memoryLength, _data);`. It will produce exactly the same ASM but is more legible.