Skip to content

Update README.md #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ memoryjs.getProcesses((error, processes) => {});


// close a process (release handle)
memoryjs.closeHandle(handle);
memoryjs.closeProcess(handle);
```

See the [Documentation](#user-content-process-object) section of this README to see what a process object looks like.
Expand Down Expand Up @@ -187,7 +187,7 @@ const baseAddress = memoryjs.mapViewOfFile(processHandle, fileName, offset, view


// sync: close handle to a file mapping object
const success = memoryjs.closeHandle(fileHandle);
const success = memoryjs.closeProcess(fileHandle);
```

See the [Documentation](#user-content-documentation) section of this README to see details on the parameters and return values for these functions.
Expand Down Expand Up @@ -513,7 +513,7 @@ const baseAddress = memoryjs.mapViewOfFile(processObject.handle, fileHandle.hand
const buffer = memoryjs.readBuffer(processObject.handle, baseAddress, 10);
const data = buffer.toString();

const success = memoryjs.closeHandle(fileHandle);
const success = memoryjs.closeProcess(fileHandle);
```

If you want to read a memory mapped file without having a target process to map the file to, you can map it to the current Node process with global variable `process.pid`:
Expand Down