summaryrefslogtreecommitdiff
path: root/zap/include
diff options
context:
space:
mode:
Diffstat (limited to 'zap/include')
-rw-r--r--zap/include/zap/mem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/zap/include/zap/mem.h b/zap/include/zap/mem.h
index d32a910..8646d63 100644
--- a/zap/include/zap/mem.h
+++ b/zap/include/zap/mem.h
@@ -13,6 +13,11 @@
extern "C" {
#endif
+typedef struct {
+ void * ptr;
+ zap_sz sz;
+} zap_mem;
+
__attribute__ ((hot,warn_unused_result)) zap_sz zap_memcnt( void const * ptr, zap_sz sz, zap_sz num, zap_bool (* fn)(void const *));
__attribute__ ((hot,nothrow)) zap_sz zap_memcp( void const * in, zap_sz num, void * out);
__attribute__ ((hot,nothrow,warn_unused_result)) zap_bool zap_memeq( void const * lptr, zap_sz num, void const * rptr);