@@ -35,7 +35,7 @@ with an opportunity to free the data when the `Napi::Buffer` gets
35
35
garbage-collected. If you need to free the data retained by the `Napi::Buffer`
36
36
object please use other variants of the `Napi::Buffer::New` factory method that
37
37
accept `Finalizer`, which is a function that will be invoked when the
38
- `Napi::Buffer` object has been destroyed. See [Finalization]() for more details.
38
+ `Napi::Buffer` object has been destroyed. See [Finalization][] for more details.
39
39
40
40
```cpp
41
41
static Napi::Buffer<T> Napi::Buffer::New(napi_env env, T* data, size_t length);
@@ -71,7 +71,7 @@ static Napi::Buffer<T> Napi::Buffer::New(napi_env env,
71
71
- `[in] length`: The number of `T` elements in the external data.
72
72
- `[in] finalizeCallback`: The function called when the engine destroys the
73
73
`Napi::Buffer` object, implementing `operator()(Napi::BasicEnv, T*)`. See
74
- [Finalization]() for more details.
74
+ [Finalization][] for more details.
75
75
76
76
Returns a new `Napi::Buffer` object.
77
77
@@ -100,7 +100,7 @@ static Napi::Buffer<T> Napi::Buffer::New(napi_env env,
100
100
- ` [in] length ` : The number of ` T ` elements in the external data.
101
101
- ` [in] finalizeCallback ` : The function called when the engine destroys the
102
102
` Napi::Buffer ` object, implementing ` operator()(Napi::BasicEnv, T*, Hint*) ` .
103
- See [ Finalization] ( ) for more details.
103
+ See [ Finalization] [ ] for more details.
104
104
- ` [in] finalizeHint ` : The hint value passed to the ` finalizeCallback ` function.
105
105
106
106
Returns a new ` Napi::Buffer ` object.
@@ -157,7 +157,7 @@ static Napi::Buffer<T> Napi::Buffer::NewOrCopy(napi_env env,
157
157
- ` [in] length ` : The number of ` T ` elements in the external data.
158
158
- ` [in] finalizeCallback ` : The function called when the engine destroys the
159
159
` Napi::Buffer ` object, implementing ` operator()(Napi::BasicEnv, T*) ` . See
160
- [ Finalization] ( ) for more details.
160
+ [ Finalization] [ ] for more details.
161
161
162
162
Returns a new ` Napi::Buffer ` object.
163
163
@@ -186,7 +186,7 @@ static Napi::Buffer<T> Napi::Buffer::NewOrCopy(napi_env env,
186
186
- `[in] length`: The number of `T` elements in the external data.
187
187
- `[in] finalizeCallback`: The function called when the engine destroys the
188
188
`Napi::Buffer` object, implementing `operator()(Napi::BasicEnv, T*, Hint*)`.
189
- See [Finalization]() for more details.
189
+ See [Finalization][] for more details.
190
190
- `[in] finalizeHint`: The hint value passed to the `finalizeCallback` function.
191
191
192
192
Returns a new `Napi::Buffer` object.
0 commit comments