Beispiel #1
0
        public Boolean IsTextReference(Int32 textPointer)
        {
            var textPointerValue = stringPointerInt + textPointer;
            var textPointerBytes = BitConverter.GetBytes(textPointerValue);

            return(ByteBinarySearcher.HasMatch(textPointerBytes, RomContents));
        }
Beispiel #2
0
        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());
        }