Skip to content

Commit

Permalink
n-api: adds function to adjust external memory
Browse files Browse the repository at this point in the history
Improved documentation based on pull request feedback

Fixes: #13928
  • Loading branch information
Chris Young committed Aug 25, 2017
1 parent a785d8c commit 77acfd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3394,13 +3394,15 @@ support it:
* If the function is not available, provide an alternate implementation
that does not use the function.

## Garbage Collection

### napi_adjust_external_memory
<!-- YAML
added: REPLACEME
-->
```C
NAPI_EXTERN int64_t napi_adjust_external_memory(napi_env env,
int64_t change_in_bytes);
int64_t change_in_bytes);
```

- `[in] env`: The environment that the API is invoked under.
Expand Down Expand Up @@ -3570,7 +3572,6 @@ object - that is, a promise object created by the underlying engine.
[Working with JavaScript Values]: #n_api_working_with_javascript_values
[Working with JavaScript Values - Abstract Operations]: #n_api_working_with_javascript_values_abstract_operations

[`napi_adjust_external_memory`]: #n_api_napi_adjust_external_memory
[`napi_cancel_async_work`]: #n_api_napi_cancel_async_work
[`napi_close_escapable_handle_scope`]: #n_api_napi_close_escapable_handle_scope
[`napi_close_handle_scope`]: #n_api_napi_close_handle_scope
Expand Down

0 comments on commit 77acfd5

Please sign in to comment.