edits
[iotcloud.git] / version2 / src / C / array.h
index b9d719628c41c2ad9c90990e034c881c5a8042e3..3d77da929baada575a662357fc92e2d60f871822 100644 (file)
@@ -53,6 +53,13 @@ public:
                        ourfree(array);
        }
 
+       bool equals(Array<type> * _array) {
+               if (_array->size != size)
+                       return false;
+               int cmp=memcmp(array, _array->array, size * sizeof(type));
+               return cmp == 0;
+       }
+       
        type get(uint index) const {
                return array[index];
        }