Lines Matching defs:other
22 ByteBuffer(const ByteBuffer& other) {
23 resize(other.size());
24 if (other.size())
25 memcpy(data_, other.data(), other.size());
29 ByteBuffer& operator=(const ByteBuffer& other) {
30 resize(other.size());
31 if (other.size())
32 memcpy(data_, other.data(), other.size());
36 ByteBuffer& operator=(ByteBuffer&& other) {
37 std::swap(data_, other.data_);
38 std::swap(size_, other.size_);
39 std::swap(capacity_, other.capacity_);
40 other.clear();
54 inline bool operator==(const ByteBuffer& other) const {
55 return size_ == other.size_ &&
56 (size_ == 0 || memcmp(data_, other.data_, size_) == 0);
59 inline bool operator!=(const ByteBuffer& other) const {
60 return !operator==(other);
214 Payload(const Payload& other) : buffer_(other.buffer_) {}
220 Payload& operator=(const Payload& other) {
221 buffer_ = other.buffer_;
233 bool operator==(const Payload& other) const {
234 return buffer_ == other.buffer_;
236 bool operator!=(const Payload& other) const {
237 return buffer_ != other.buffer_;
243 operator==(const std::vector<Type, AllocatorType>& other) const {
244 return buffer_.size() == other.size() &&
245 memcmp(buffer_.data(), other.data(), other.size()) == 0;
249 operator!=(const std::vector<Type, AllocatorType>& other) const {
250 return !operator!=(other);