aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/skiff/zerocopy_output_writer-inl.h
diff options
context:
space:
mode:
authormax42 <max42@yandex-team.com>2023-06-30 11:13:34 +0300
committermax42 <max42@yandex-team.com>2023-06-30 11:13:34 +0300
commit3e1899838408bbad47622007aa382bc8a2b01f87 (patch)
tree0f21c1e6add187ddb6c3ccc048a7d640ce03fb87 /library/cpp/skiff/zerocopy_output_writer-inl.h
parent5463eb3f5e72a86f858a3d27c886470a724ede34 (diff)
downloadydb-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-inl.h')
-rw-r--r--library/cpp/skiff/zerocopy_output_writer-inl.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/library/cpp/skiff/zerocopy_output_writer-inl.h b/library/cpp/skiff/zerocopy_output_writer-inl.h
deleted file mode 100644
index 6bd067c9fa..0000000000
--- a/library/cpp/skiff/zerocopy_output_writer-inl.h
+++ /dev/null
@@ -1,51 +0,0 @@
-#pragma once
-#ifndef ZEROCOPY_OUTPUT_WRITER_INL_H_
-#error "Direct inclusion of this file is not allowed, include zerocopy_output_writer.h"
-// For the sake of sane code completion.
-#include "zerocopy_output_writer.h"
-#endif
-
-#include <util/system/yassert.h>
-
-namespace NSkiff {
-
-////////////////////////////////////////////////////////////////////////////////
-
-char* TZeroCopyOutputStreamWriter::Current() const
-{
- return Current_;
-}
-
-ui64 TZeroCopyOutputStreamWriter::RemainingBytes() const
-{
- return RemainingBytes_;
-}
-
-void TZeroCopyOutputStreamWriter::Advance(size_t bytes)
-{
- Y_VERIFY(bytes <= RemainingBytes_);
- Current_ += bytes;
- RemainingBytes_ -= bytes;
-}
-
-void TZeroCopyOutputStreamWriter::Write(const void* buffer, size_t length)
-{
- if (length > RemainingBytes_) {
- UndoRemaining();
- Output_->Write(buffer, length);
- TotalWrittenBlockSize_ += length;
- ObtainNextBlock();
- } else {
- memcpy(Current_, buffer, length);
- Advance(length);
- }
-}
-
-ui64 TZeroCopyOutputStreamWriter::GetTotalWrittenSize() const
-{
- return TotalWrittenBlockSize_ - RemainingBytes_;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-
-} // namespace NSkiff