File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ static Napi::ArrayBuffer Napi::ArrayBuffer::New(napi_env env,
67
67
- `[in] externalData`: The pointer to the external data to wrap.
68
68
- `[in] byteLength`: The length of the `externalData`, in bytes.
69
69
- `[in] finalizeCallback`: A function to be called when the `Napi::ArrayBuffer` is
70
- destroyed. It must implement `operator()`, accept a `void*` (which is the
70
+ destroyed. It must implement `operator()`, accept an Napi::Env, a `void*` (which is the
71
71
`externalData` pointer), and return `void`.
72
72
73
73
Returns a new `Napi::ArrayBuffer` instance.
@@ -94,7 +94,7 @@ static Napi::ArrayBuffer Napi::ArrayBuffer::New(napi_env env,
94
94
- ` [in] externalData ` : The pointer to the external data to wrap.
95
95
- ` [in] byteLength ` : The length of the ` externalData ` , in bytes.
96
96
- ` [in] finalizeCallback ` : The function to be called when the ` Napi::ArrayBuffer ` is
97
- destroyed. It must implement ` operator() ` , accept a ` void* ` (which is the
97
+ destroyed. It must implement ` operator() ` , accept an Napi::Env, a ` void* ` (which is the
98
98
` externalData ` pointer) and ` Hint* ` , and return ` void ` .
99
99
- ` [in] finalizeHint ` : The hint to be passed as the second parameter of the
100
100
finalize callback.
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ static Napi::Buffer<T> Napi::Buffer::New(napi_env env,
65
65
- `[in] data`: The pointer to the external data to expose.
66
66
- `[in] length`: The number of `T` elements in the external data.
67
67
- `[in] finalizeCallback`: The function to be called when the `Napi::Buffer` is
68
- destroyed. It must implement `operator()`, accept a `T*` (which is the
68
+ destroyed. It must implement `operator()`, accept an Napi::Env, a `T*` (which is the
69
69
external data pointer), and return `void`.
70
70
71
71
Returns a new `Napi::Buffer` object.
@@ -91,7 +91,7 @@ static Napi::Buffer<T> Napi::Buffer::New(napi_env env,
91
91
- ` [in] data ` : The pointer to the external data to expose.
92
92
- ` [in] length ` : The number of ` T ` elements in the external data.
93
93
- ` [in] finalizeCallback ` : The function to be called when the ` Napi::Buffer ` is
94
- destroyed. It must implement ` operator() ` , accept a ` T* ` (which is the
94
+ destroyed. It must implement ` operator() ` , accept an Napi::Env, a ` T* ` (which is the
95
95
external data pointer) and ` Hint* ` , and return ` void ` .
96
96
- ` [in] finalizeHint ` : The hint to be passed as the second parameter of the
97
97
finalize callback.
You can’t perform that action at this time.
0 commit comments