Field Type | Personal Info |
---|---|
Student Name | Fares Atef |
Github Profile | FaresAtef1 |
LinkedIn Profile | Fares Atef |
Organization | ENIGMA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ut64 ut8_to_ut64(ut8 *data,ut64 data_size) { | |
ut64 result=0; | |
for(ut64 i=0;i<data_size;i++){ | |
result|=((ut64) data[i]) << (8*i); | |
} | |
if(data_size<sizeof(ut64)){ | |
for(ut64 i=0;i<sizeof(ut64);i++){ | |
result|=((ut64) 0) << (8*i); | |
} | |
} |