| 100 | |
| 101 | template<class T> |
| 102 | inline int cpp::marshal::View<T>::compare(const View<T>& inRHS) const |
| 103 | { |
| 104 | auto common = length < inRHS.length ? length : inRHS.length; |
| 105 | auto result = std::memcmp(ptr.ptr, inRHS.ptr.ptr, sizeof(T) * common); |
| 106 | |
| 107 | if (result) |
| 108 | { |
| 109 | return result; |
| 110 | } |
| 111 | |
| 112 | return length - inRHS.length; |
| 113 | } |
| 114 | |
| 115 | template<class T> |
| 116 | inline bool cpp::marshal::View<T>::operator==(const View<T>& inRHS) const |
no test coverage detected