diff options
author | Darshan Sen <darshan.sen@postman.com> | 2021-09-19 12:15:20 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2021-09-26 17:47:38 +0300 |
commit | 95d16564f076c69b94cdb6f452b4863520611060 (patch) | |
tree | 9e0fd4498071e320442710569c6f1b474f3757e4 /src/env.h | |
parent | 256fe21045b506a236b79a4ee4d4f440a3d36807 (diff) |
src: remove usage of AllocatedBuffer from udp_wrap.cc
Signed-off-by: Darshan Sen <darshan.sen@postman.com>
PR-URL: https://github.com/nodejs/node/pull/40151
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h index f055e6b4501..0c371515148 100644 --- a/src/env.h +++ b/src/env.h @@ -1438,6 +1438,9 @@ class Environment : public MemoryRetainer { void RunAndClearNativeImmediates(bool only_refed = false); void RunAndClearInterrupts(); + inline uv_buf_t allocate_managed_buffer(const size_t suggested_size); + inline std::unique_ptr<v8::BackingStore> release_managed_buffer( + const uv_buf_t& buf); inline std::unordered_map<char*, std::unique_ptr<v8::BackingStore>>* released_allocated_buffers(); |