我使用的是Microsoft.Diagnostics.Runtime库。
我有一个对象: ClrObject obj = heap.GetObject(ptr);我可以读取:
int length = obj.ReadField<int>("_stringLength");
char firstCharacter = obj.ReadField<char>("_firstChar");System.String对象的。
当我知道字符串的长度并且可以读取第一个字符时,如何读取完整的字符串?
发布于 2020-10-07 21:39:49
在ClrMD 2.0中使用ClrObject.AsString。
https://stackoverflow.com/questions/62665660
复制相似问题