mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: remove confusing ReadSeString API in MemoryHelper.cs
This commit is contained in:
parent
ac9ed6490b
commit
b992325470
1 changed files with 1 additions and 9 deletions
|
|
@ -207,21 +207,13 @@ namespace Dalamud.Memory
|
|||
return eosPos >= 0 ? data.Substring(0, eosPos) : data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Read an SeString from a specified memory address.
|
||||
/// </summary>
|
||||
/// <param name="memoryAddress">The memory address to read from.</param>
|
||||
/// <returns>The read in string.</returns>
|
||||
public static SeString ReadSeString(IntPtr memoryAddress)
|
||||
=> ReadSeString(memoryAddress, 256);
|
||||
|
||||
/// <summary>
|
||||
/// Read an SeString from a specified memory address.
|
||||
/// </summary>
|
||||
/// <param name="memoryAddress">The memory address to read from.</param>
|
||||
/// <param name="maxLength">The maximum length of the string.</param>
|
||||
/// <returns>The read in string.</returns>
|
||||
public static SeString ReadSeString(IntPtr memoryAddress, int maxLength)
|
||||
public static SeString ReadSeString(IntPtr memoryAddress, int maxLength = 256)
|
||||
{
|
||||
ReadRaw(memoryAddress, maxLength, out var buffer);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue