Beispiel #1
0
        public static string readString(this IMemoryRange range, ref ulong point)
        {
            var size  = range.read(point++);
            var chars = new char[size];

            for (var i = 0ul; i != size; i++)
            {
                chars[i] = MarshalChar(range.read(point++));
            }
            return(string.Join("", chars));
        }
Beispiel #2
0
        public static (ulong @ref, ulong start) GetFreeAddress(this IMemoryRange range)
        {
            var address = range.read(0x899);
            var result  = address == 0x0 ? 0x900 : address + 1;

            return(result, result);
        }