MCPcopy Create free account
hub / github.com/apache/arrow / Equals

Method Equals

cpp/src/arrow/buffer.cc:93–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93bool Buffer::Equals(const Buffer& other, const int64_t nbytes) const {
94 return this == &other || (size_ >= nbytes && other.size_ >= nbytes &&
95 (data_ == other.data_ ||
96 !memcmp(data_, other.data_, static_cast<size_t>(nbytes))));
97}
98
99bool Buffer::Equals(const Buffer& other) const {
100 return this == &other || (size_ == other.size_ &&

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected