/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v22.23.2
src/node_bob-inl.h
36 строк
653 B
James M Snell
src, lib: fixup lint and format issues for DataQueue/Blob
20 фев 2023, 03:26
20 фев 2023, 03:26
71fb06f
Код
Авторство
О чём код?
#ifndef SRC_NODE_BOB_INL_H_ #define SRC_NODE_BOB_INL_H_ #include "node_bob.h" #include <functional> namespace node { namespace bob { template <typename T> int SourceImpl<T>::Pull( Next<T> next, int options, T* data, size_t count, size_t max_count_hint) { int status; if (eos_) { status = bob::Status::STATUS_EOS; std::move(next)(status, nullptr, 0, [](size_t len) {}); return status; } status = DoPull(std::move(next), options, data, count, max_count_hint); if (status == bob::Status::STATUS_EOS) eos_ = true; return status; } } // namespace bob } // namespace node #endif // SRC_NODE_BOB_INL_H_