Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
SamboyCoding committed Aug 17, 2023
1 parent c1551ba commit b717d76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UMS.Analysis/Structures/Objects/ManagedClassInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public ManagedClassInstance(SnapshotFile file, RawManagedObjectInfo info, Manage
for (var i = 0; i < arrayElementCount; i++)
{
var elementData = arrayData[(i * elementTypeSize)..];
Fields[i] = ReadFieldValue(file, elementData, depth, elementFlags, elementTypeSize, elementType.TypeIndex, i);
Fields[i] = ReadArrayEntry(file, elementData, depth, elementFlags, elementTypeSize, elementType.TypeIndex, i);
}

return;
Expand Down Expand Up @@ -167,7 +167,7 @@ private IFieldValue ReadFieldValue(SnapshotFile file, BasicFieldInfoCache info,
return new ComplexFieldValue(file, info, this, fieldData, depth + 1, array);
}

private IFieldValue ReadFieldValue(SnapshotFile file, Span<byte> fieldData, int depth, TypeFlags fieldTypeFlags, int fieldTypeSize, int fieldTypeIndex, int arrayOffset)
private IFieldValue ReadArrayEntry(SnapshotFile file, Span<byte> fieldData, int depth, TypeFlags fieldTypeFlags, int fieldTypeSize, int fieldTypeIndex, int arrayOffset)
{
BasicFieldInfoCache info = new()
{
Expand Down

0 comments on commit b717d76

Please sign in to comment.