aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/skiff/zerocopy_output_writer.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.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.h')
-rw-r--r--library/cpp/skiff/zerocopy_output_writer.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/library/cpp/skiff/zerocopy_output_writer.h b/library/cpp/skiff/zerocopy_output_writer.h
deleted file mode 100644
index b0bccc5a63..0000000000
--- a/library/cpp/skiff/zerocopy_output_writer.h
+++ /dev/null
@@ -1,41 +0,0 @@
-#pragma once
-
-#include <util/stream/zerocopy_output.h>
-
-namespace NSkiff {
-
-////////////////////////////////////////////////////////////////////////////////
-
-// Simple wrapper around
-class TZeroCopyOutputStreamWriter
- : private TNonCopyable
-{
-public:
- explicit TZeroCopyOutputStreamWriter(IZeroCopyOutput* output);
-
- ~TZeroCopyOutputStreamWriter();
-
- Y_FORCE_INLINE char* Current() const;
- Y_FORCE_INLINE ui64 RemainingBytes() const;
- Y_FORCE_INLINE void Advance(size_t bytes);
- void UndoRemaining();
- Y_FORCE_INLINE void Write(const void* buffer, size_t length);
- Y_FORCE_INLINE ui64 GetTotalWrittenSize() const;
-
-private:
- void ObtainNextBlock();
-
-private:
- IZeroCopyOutput* Output_;
- char* Current_ = nullptr;
- ui64 RemainingBytes_ = 0;
- ui64 TotalWrittenBlockSize_ = 0;
-};
-
-////////////////////////////////////////////////////////////////////////////////
-
-} // namespace NSkiff
-
-#define ZEROCOPY_OUTPUT_WRITER_INL_H_
-#include "zerocopy_output_writer-inl.h"
-#undef ZEROCOPY_OUTPUT_WRITER_INL_H_