GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use the given Encoding instance. · ReClassNET/ReClass.NET@b7ebbae

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • ReClass.NET/Memory
    • RemoteProcess.cs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎ReClass.NET/Memory/RemoteProcess.cs‎

Copy file name to clipboardExpand all lines: ReClass.NET/Memory/RemoteProcess.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public string ReadRemoteString(Encoding encoding, IntPtr address, int length)
372372
/// <summary>Reads a string from the address in the remote process with the given length and encoding. The string gets truncated at the first zero character.</summary>
373373
/// <param name="encoding">The encoding used by the string.</param>
374374
/// <param name="address">The address of the string.</param>
375-
/// <param name="length">The length of the string.</param>
375+
/// <param name="length">The maximum length of the string.</param>
376376
/// <returns>The string.</returns>
377377
public string ReadRemoteStringUntilFirstNullCharacter(Encoding encoding, IntPtr address, int length)
378378
{
@@ -391,7 +391,7 @@ public string ReadRemoteStringUntilFirstNullCharacter(Encoding encoding, IntPtr
391391

392392
try
393393
{
394-
return Encoding.UTF8.GetString(data, 0, Math.Min(index, data.Length));
394+
return encoding.GetString(data, 0, Math.Min(index, data.Length));
395395
}
396396
catch
397397
{

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.