Skip to content

Commit

Permalink
fix: explaining this part
Browse files Browse the repository at this point in the history
  • Loading branch information
KotRikD committed Mar 6, 2023
1 parent 94af548 commit d9f3385
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Memory/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ export class Process {
readSharpString(address: number): string {
const length = this.readInt(address + 0x4)
try {
// TODO: fix memory leak
const buffer = this.readBuffer(address + 0x8, length * 2)
console.log(typeof buffer)

const out = buffer.toString("utf16le")
return out
} catch (_) {
Expand Down

0 comments on commit d9f3385

Please sign in to comment.