[dovecot-cvs] dovecot/src/lib buffer.h,1.14,1.15
cras at dovecot.org
cras at dovecot.org
Sat Apr 16 22:42:40 EEST 2005
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv30295
Modified Files:
buffer.h
Log Message:
Added BUFFER_APPROX_SIZE which can be used to approximately calculate the
memory used by buffer struct itself.
Index: buffer.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/buffer.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- buffer.h 2 Apr 2005 19:29:08 -0000 1.14
+++ buffer.h 16 Apr 2005 19:42:37 -0000 1.15
@@ -1,6 +1,10 @@
#ifndef __BUFFER_H
#define __BUFFER_H
+/* May be used in calculations of how much memory buffer_t will allocate
+ for itself, but this isn't necessary precise. */
+#define BUFFER_APPROX_SIZE (7 * sizeof(void *))
+
struct buffer {
const void *data;
const size_t used;
More information about the dovecot-cvs
mailing list