Skip to content

Commit b717d76

Browse files
committed
Small refactor
1 parent c1551ba commit b717d76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UMS.Analysis/Structures/Objects/ManagedClassInstance.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public ManagedClassInstance(SnapshotFile file, RawManagedObjectInfo info, Manage
104104
for (var i = 0; i < arrayElementCount; i++)
105105
{
106106
var elementData = arrayData[(i * elementTypeSize)..];
107-
Fields[i] = ReadFieldValue(file, elementData, depth, elementFlags, elementTypeSize, elementType.TypeIndex, i);
107+
Fields[i] = ReadArrayEntry(file, elementData, depth, elementFlags, elementTypeSize, elementType.TypeIndex, i);
108108
}
109109

110110
return;
@@ -167,7 +167,7 @@ private IFieldValue ReadFieldValue(SnapshotFile file, BasicFieldInfoCache info,
167167
return new ComplexFieldValue(file, info, this, fieldData, depth + 1, array);
168168
}
169169

170-
private IFieldValue ReadFieldValue(SnapshotFile file, Span<byte> fieldData, int depth, TypeFlags fieldTypeFlags, int fieldTypeSize, int fieldTypeIndex, int arrayOffset)
170+
private IFieldValue ReadArrayEntry(SnapshotFile file, Span<byte> fieldData, int depth, TypeFlags fieldTypeFlags, int fieldTypeSize, int fieldTypeIndex, int arrayOffset)
171171
{
172172
BasicFieldInfoCache info = new()
173173
{

0 commit comments

Comments
 (0)