Home
last modified time | relevance | path

Searched refs:MallocedBuffer (Results 1 – 10 of 10) sorted by relevance

/third_party/node/src/
Dutil.h556 struct MallocedBuffer { struct
573 MallocedBuffer() : data(nullptr), size(0) {} in MallocedBuffer() function
574 explicit MallocedBuffer(size_t size) : data(Malloc<T>(size)), size(size) {} in MallocedBuffer() function
575 MallocedBuffer(T* data, size_t size) : data(data), size(size) {} in MallocedBuffer() argument
576 MallocedBuffer(MallocedBuffer&& other) : data(other.data), size(other.size) { in MallocedBuffer() function
579 MallocedBuffer& operator=(MallocedBuffer&& other) {
580 this->~MallocedBuffer();
581 return *new(this) MallocedBuffer(std::move(other));
583 ~MallocedBuffer() { in ~MallocedBuffer() argument
586 MallocedBuffer(const MallocedBuffer&) = delete;
[all …]
Dnode_report_utils.cc9 using node::MallocedBuffer;
88 MallocedBuffer<char> buffer(0); in ReportPipeEndpoints()
95 buffer = MallocedBuffer<char>(buffer_size); in ReportPipeEndpoints()
109 buffer = MallocedBuffer<char>(buffer_size); in ReportPipeEndpoints()
123 MallocedBuffer<char> buffer(0); in ReportPath()
140 buffer = MallocedBuffer<char>(size + 1); in ReportPath()
Dnode_messaging.h47 explicit Message(MallocedBuffer<char>&& payload = MallocedBuffer<char>());
99 MallocedBuffer<char> main_message_buf_;
Ddebug_utils.cc396 MallocedBuffer<char> buffer(kBufferGrowStep); in GetLoadedLibraries()
401 buffer = MallocedBuffer<char>(buffer.size + kBufferGrowStep); in GetLoadedLibraries()
444 MallocedBuffer<HMODULE> modules(size_1); in GetLoadedLibraries()
Dmemory_tracker.h214 const MallocedBuffer<T>& value,
Dcares_wrap.h222 MallocedBuffer<unsigned char> buf;
322 data->buf = MallocedBuffer<unsigned char>(buf_copy, answer_len); in Callback()
Dmemory_tracker-inl.h231 const MallocedBuffer<T>& value, in TrackField()
Dnode_messaging.cc72 Message::Message(MallocedBuffer<char>&& buffer) in Message()
511 MallocedBuffer<char>(reinterpret_cast<char*>(data.first), data.second); in Serialize()
/third_party/node/doc/changelogs/
DCHANGELOG_V11.md2794 * [[`33351a112d`](https://github.com/nodejs/node/commit/33351a112d)] - **src**: use MallocedBuffer
2802 …s://github.com/nodejs/node/commit/ecacf33356)] - **src**: fix bug in MallocedBuffer constructor (T…
DCHANGELOG_V10.md1484 * [[`3d76ab9287`](https://github.com/nodejs/node/commit/3d76ab9287)] - **src**: use MallocedBuffer
1489 …s://github.com/nodejs/node/commit/a663d5674d)] - **src**: fix bug in MallocedBuffer constructor (T…
3387 * [[`418739c021`](https://github.com/nodejs/node/commit/418739c021)] - **src**: fix MallocedBuffer