projects
/
iotcloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
edits
[iotcloud.git]
/
version2
/
src
/
C
/
array.h
diff --git
a/version2/src/C/array.h
b/version2/src/C/array.h
index b9d719628c41c2ad9c90990e034c881c5a8042e3..3d77da929baada575a662357fc92e2d60f871822 100644
(file)
--- a/
version2/src/C/array.h
+++ b/
version2/src/C/array.h
@@
-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];
}