mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
added doc-strings
This commit is contained in:
1 parent
fea82b9e85
commit
d3236d7bec
2 files changed
+9
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user