| 227 | } |
| 228 | |
| 229 | bool operator==(const TBuffer& other) const noexcept { |
| 230 | if (Empty()) { |
| 231 | return other.Empty(); |
| 232 | } |
| 233 | return Size() == other.Size() && 0 == std::memcmp(Data(), other.Data(), Size()); |
| 234 | } |
| 235 | |
| 236 | bool operator!=(const TBuffer& other) const noexcept { |
| 237 | return !(*this == other); |