// "0x104e88000" 326
- (NSString *)vmAddr:(NSString *)base offset:(int)offset {
uint64_t addr = 0;
[[NSScanner scannerWithString:base] scanHexLongLong:&addr];
uint64_t newAddr = addr + offset;
return [NSString stringWithFormat:@"0x%llx", newAddr];
}
网友评论