diff options
| author | babenko <[email protected]> | 2022-11-13 12:15:50 +0300 | 
|---|---|---|
| committer | babenko <[email protected]> | 2022-11-13 12:15:50 +0300 | 
| commit | f6425222980211ebf68592a1658e87f0fb442972 (patch) | |
| tree | 779d1f4392c258027651ee0b7b97f93464747fd7 /library/cpp/yt/memory/blob.h | |
| parent | 277cd4ec47419923e9cfabd3ea4726437cbfa53c (diff) | |
Move TChunkedOutputStream to library and make it zero-copy aware
Diffstat (limited to 'library/cpp/yt/memory/blob.h')
| -rw-r--r-- | library/cpp/yt/memory/blob.h | 46 | 
1 files changed, 3 insertions, 43 deletions
| diff --git a/library/cpp/yt/memory/blob.h b/library/cpp/yt/memory/blob.h index 99441fb8c97..0a1318c2310 100644 --- a/library/cpp/yt/memory/blob.h +++ b/library/cpp/yt/memory/blob.h @@ -21,9 +21,9 @@ class TBlob  {  public:      //! Constructs a blob with a given size. -    TBlob( -        TRefCountedTypeCookie tagCookie, -        size_t size, +    explicit TBlob( +        TRefCountedTypeCookie tagCookie = GetRefCountedTypeCookie<TDefaultBlobTag>(), +        size_t size = 0,          bool initiailizeStorage = true,          bool pageAligned = false); @@ -33,46 +33,6 @@ public:          TRef data,          bool pageAligned = false); -    //! Constructs an empty blob. -    template <class TTag = TDefaultBlobTag> -    explicit TBlob(TTag tag = {}) -        : TBlob(tag, 0, true, false) -    { } - -    //! Constructs a blob with a given size. -    template <class TTag> -    explicit TBlob( -        TTag, -        size_t size, -        bool initiailizeStorage = true, -        bool pageAligned = false) -        : TBlob( -            GetRefCountedTypeCookie<TTag>(), -            size, -            initiailizeStorage, -            pageAligned) -    { } - -    //! Copies a chunk of memory into a new instance. -    template <class TTag> -    TBlob( -        TTag, -        TRef data, -        bool pageAligned = false) -        : TBlob( -            GetRefCountedTypeCookie<TTag>(), -            data, -            pageAligned) -    { } - -    //! Remind user about the tag argument. -    TBlob(i32 size, bool initiailizeStorage = true) = delete; -    TBlob(i64 size, bool initiailizeStorage = true) = delete; -    TBlob(ui32 size, bool initiailizeStorage = true) = delete; -    TBlob(ui64 size, bool initiailizeStorage = true) = delete; -    template <typename T, typename U> -    TBlob(const T*, U) = delete; -      //! Copies the data.      TBlob(const TBlob& other); | 
