From b9923254708fca0d17d6f0a84a71c9c7a97fc128 Mon Sep 17 00:00:00 2001
From: goat <16760685+goaaats@users.noreply.github.com>
Date: Sat, 14 Aug 2021 21:31:03 +0200
Subject: [PATCH] fix: remove confusing ReadSeString API in MemoryHelper.cs
---
Dalamud/Memory/MemoryHelper.cs | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/Dalamud/Memory/MemoryHelper.cs b/Dalamud/Memory/MemoryHelper.cs
index 0e72955af..d663f2245 100644
--- a/Dalamud/Memory/MemoryHelper.cs
+++ b/Dalamud/Memory/MemoryHelper.cs
@@ -207,21 +207,13 @@ namespace Dalamud.Memory
return eosPos >= 0 ? data.Substring(0, eosPos) : data;
}
- ///
- /// Read an SeString from a specified memory address.
- ///
- /// The memory address to read from.
- /// The read in string.
- public static SeString ReadSeString(IntPtr memoryAddress)
- => ReadSeString(memoryAddress, 256);
-
///
/// Read an SeString from a specified memory address.
///
/// The memory address to read from.
/// The maximum length of the string.
/// The read in string.
- public static SeString ReadSeString(IntPtr memoryAddress, int maxLength)
+ public static SeString ReadSeString(IntPtr memoryAddress, int maxLength = 256)
{
ReadRaw(memoryAddress, maxLength, out var buffer);