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 | 9d80afb43be16931e653a688c5e0f585101ff4f8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/memory/blob.pxd | |
parent | 358e631d1a69242d3ae4d6e6b1e4f7581d03133b (diff) | |
download | ydb-9d80afb43be16931e653a688c5e0f585101ff4f8.tar.gz |
Restoring authorship annotation for <danila-eremin@yandex-team.ru>. Commit 2 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 d71591a198..c68525024a 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&) + + |