public Boolean IsTextReference(Int32 textPointer) { var textPointerValue = stringPointerInt + textPointer; var textPointerBytes = BitConverter.GetBytes(textPointerValue); return(ByteBinarySearcher.HasMatch(textPointerBytes, RomContents)); }
public List <TextReference> FindTextReferences(Int32 textPointer) { var textPointerValue = stringPointerInt + textPointer; var textPointerBytes = BitConverter.GetBytes(textPointerValue); var result = ByteBinarySearcher.FindMatches(textPointerBytes, RomContents); return(result.Select(i => new TextReference() { Address = i, Repoint = true }).ToList()); }