diff options
author | danila-eremin <danila-eremin@yandex-team.ru> | 2022-02-10 16:46:21 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:21 +0300 |
commit | 358e631d1a69242d3ae4d6e6b1e4f7581d03133b (patch) | |
tree | db997f29fd5f1b32ede8ce681a7c73ec0a0714d0 /util/memory/blob.pxd | |
parent | bf23f1e45d4627b54a70900ef362c1be748cc787 (diff) | |
download | ydb-358e631d1a69242d3ae4d6e6b1e4f7581d03133b.tar.gz |
Restoring authorship annotation for <danila-eremin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/memory/blob.pxd')
-rw-r--r-- | util/memory/blob.pxd | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/util/memory/blob.pxd b/util/memory/blob.pxd index c68525024a..d71591a198 100644 --- a/util/memory/blob.pxd +++ b/util/memory/blob.pxd @@ -1,41 +1,41 @@ -from libcpp cimport bool as bool_t - -from util.generic.string cimport TString -from util.system.types cimport ui8 - - -cdef extern from "util/memory/blob.h" nogil: - cdef cppclass TBlob: - TBlob() - TBlob(const TBlob&) - void Swap(TBlob& r) - const void* Data() const - size_t Size() const - bool_t Empty() const - bool_t IsNull() const - const char* AsCharPtr() const - const unsigned char* AsUnsignedCharPtr() const - void Drop() - TBlob SubBlob(size_t len) except + - TBlob SubBlob(size_t begin, size_t end) except + - TBlob DeepCopy() except + - - @staticmethod - TBlob NoCopy(const void* data, size_t length) except + - - @staticmethod - TBlob Copy(const void* data, size_t length) except + - - @staticmethod - TBlob FromFile(const TString& path) except + - - @staticmethod - TBlob PrechargedFromFile(const TString& path) except + - - @staticmethod - TBlob FromString(const TString& s) except + - - ui8& operator[](size_t) const - TBlob& operator=(TBlob&) - - +from libcpp cimport bool as bool_t + +from util.generic.string cimport TString +from util.system.types cimport ui8 + + +cdef extern from "util/memory/blob.h" nogil: + cdef cppclass TBlob: + TBlob() + TBlob(const TBlob&) + void Swap(TBlob& r) + const void* Data() const + size_t Size() const + bool_t Empty() const + bool_t IsNull() const + const char* AsCharPtr() const + const unsigned char* AsUnsignedCharPtr() const + void Drop() + TBlob SubBlob(size_t len) except + + TBlob SubBlob(size_t begin, size_t end) except + + TBlob DeepCopy() except + + + @staticmethod + TBlob NoCopy(const void* data, size_t length) except + + + @staticmethod + TBlob Copy(const void* data, size_t length) except + + + @staticmethod + TBlob FromFile(const TString& path) except + + + @staticmethod + TBlob PrechargedFromFile(const TString& path) except + + + @staticmethod + TBlob FromString(const TString& s) except + + + ui8& operator[](size_t) const + TBlob& operator=(TBlob&) + + |