diff options
author | Darshan Sen <darshan.sen@postman.com> | 2021-10-03 07:54:58 +0300 |
---|---|---|
committer | Darshan Sen <darshan.sen@postman.com> | 2021-10-12 08:51:04 +0300 |
commit | a784258444b052dfd31cca90db57b21dc38bb1eb (patch) | |
tree | 0e0aa9a83d9af0a015aed5653bfa6d7e96107d1d /src/stream_base-inl.h | |
parent | 15ce81a4645d5d920187f3b2f832b472d8c47214 (diff) |
src: remove usage of `AllocatedBuffer` from `stream_*`
Signed-off-by: Darshan Sen <darshan.sen@postman.com>
PR-URL: https://github.com/nodejs/node/pull/40293
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/stream_base-inl.h')
-rw-r--r-- | src/stream_base-inl.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/stream_base-inl.h b/src/stream_base-inl.h index 28b0b209922..22e5518b589 100644 --- a/src/stream_base-inl.h +++ b/src/stream_base-inl.h @@ -3,7 +3,6 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS -#include "allocated_buffer-inl.h" #include "async_wrap-inl.h" #include "base_object-inl.h" #include "node.h" @@ -270,9 +269,9 @@ ShutdownWrap* ShutdownWrap::FromObject( return FromObject(base_obj->object()); } -void WriteWrap::SetAllocatedStorage(AllocatedBuffer&& storage) { - CHECK_NULL(storage_.data()); - storage_ = std::move(storage); +void WriteWrap::SetBackingStore(std::unique_ptr<v8::BackingStore> bs) { + CHECK(!backing_store_); + backing_store_ = std::move(bs); } void StreamReq::Done(int status, const char* error_str) { |