diff options
author | max42 <max42@yandex-team.com> | 2023-06-30 11:13:34 +0300 |
---|---|---|
committer | max42 <max42@yandex-team.com> | 2023-06-30 11:13:34 +0300 |
commit | 3e1899838408bbad47622007aa382bc8a2b01f87 (patch) | |
tree | 0f21c1e6add187ddb6c3ccc048a7d640ce03fb87 /library/cpp/skiff/zerocopy_output_writer.cpp | |
parent | 5463eb3f5e72a86f858a3d27c886470a724ede34 (diff) | |
download | ydb-3e1899838408bbad47622007aa382bc8a2b01f87.tar.gz |
Revert "YT-19324: move YT provider to ydb/library/yql"
This reverts commit ca272f12fdd0e8d5c3e957fc87939148f1caaf72, reversing
changes made to 49f8acfc8b0b5c0071b804423bcf53fda26c7c12.
Diffstat (limited to 'library/cpp/skiff/zerocopy_output_writer.cpp')
-rw-r--r-- | library/cpp/skiff/zerocopy_output_writer.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/library/cpp/skiff/zerocopy_output_writer.cpp b/library/cpp/skiff/zerocopy_output_writer.cpp deleted file mode 100644 index 49492b55a4..0000000000 --- a/library/cpp/skiff/zerocopy_output_writer.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include "zerocopy_output_writer.h" - -namespace NSkiff { - -//////////////////////////////////////////////////////////////////////////////// - -TZeroCopyOutputStreamWriter::TZeroCopyOutputStreamWriter(IZeroCopyOutput* output) - : Output_(output) -{ - ObtainNextBlock(); -} - -TZeroCopyOutputStreamWriter::~TZeroCopyOutputStreamWriter() -{ - if (RemainingBytes_ > 0) { - UndoRemaining(); - } -} - -void TZeroCopyOutputStreamWriter::ObtainNextBlock() -{ - if (RemainingBytes_ > 0) { - UndoRemaining(); - } - RemainingBytes_ = Output_->Next(&Current_); - TotalWrittenBlockSize_ += RemainingBytes_; -} - -void TZeroCopyOutputStreamWriter::UndoRemaining() -{ - Output_->Undo(RemainingBytes_); - TotalWrittenBlockSize_ -= RemainingBytes_; - RemainingBytes_ = 0; -} - -//////////////////////////////////////////////////////////////////////////////// - -} // namespace NSkiff |