added doc-strings

This commit is contained in:
Anatoly Myachev committed 2019-05-24 00:10:30 +03:00
1 parent fea82b9e85
commit d3236d7bec
2 files changed
+9

No files matched your search

+2
View File
@@ -89,6 +89,8 @@ class ARROW_EXPORT Buffer {
bool is_mutable() const { return is_mutable_; }
/// \brief Construct a new std::string with a hexadecimal representation of the buffer.
/// \return std::string
std::string ToHexString();
/// Return true if both buffers are the same size and contain the same bytes
+7
View File
@@ -869,6 +869,13 @@ cdef class Buffer:
return <uintptr_t> self.buffer.get().data()
def hex(self):
"""
Compute hexadecimal representation of the buffer.
Returns
-------
: bytes
"""
return self.buffer.get().ToHexString()
@property