| 91 | } |
| 92 | |
| 93 | bool 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 | |
| 99 | bool Buffer::Equals(const Buffer& other) const { |
| 100 | return this == &other || (size_ == other.size_ && |
nothing calls this directly
no outgoing calls
no test coverage detected