private static string ReadStlString(IntPtr ProcessHandle, IntPtr Offset)
{
UInt32 size = ReadUInt32(ProcessHandle, IntPtr.Add(Offset, 0x14));
UInt32 capacity = ReadUInt32(ProcessHandle, IntPtr.Add(Offset, 0x18));
byte[] buffer = new byte[2 * size];
if (capacity <= 7)
ReadBuffer(ProcessHandle, IntPtr.Add(Offset, 0x4), ref buffer, buffer.Length);
else
{
IntPtr dataPtr = ReadIntPtr(ProcessHandle, IntPtr.Add(Offset, 0x4));
ReadBuffer(ProcessHandle, dataPtr, ref buffer, buffer.Length);
}
return Encoding.Unicode.GetString(buffer, 0, buffer.Length);
}