changeset 3603:36e1899b109b HEAD

Added some comments
author Timo Sirainen <tss@iki.fi>
date Sat, 24 Sep 2005 13:10:56 +0300
parents c6ebda431efa
children 9d2345ba4e30
files src/lib-index/mail-index-private.h
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-private.h	Sat Sep 24 12:48:19 2005 +0300
+++ b/src/lib-index/mail-index-private.h	Sat Sep 24 13:10:56 2005 +0300
@@ -45,21 +45,22 @@
 	const char *name;
 	uint32_t index_idx; /* index ext_id */
 	uint32_t reset_id;
-	uint32_t hdr_offset;
-	uint32_t hdr_size;
+	uint32_t hdr_offset; /* points to data[] */
+	uint32_t hdr_size; /* size of data[] */
 	uint16_t record_offset;
 	uint16_t record_size;
 	uint16_t record_align;
 };
 
 struct mail_index_ext_header {
-	uint32_t hdr_size;
+	uint32_t hdr_size; /* size of data[] */
 	uint32_t reset_id;
 	uint16_t record_offset;
 	uint16_t record_size;
 	uint16_t record_align;
 	uint16_t name_size;
-	/* unsigned char name[] */
+	/* unsigned char name[name_size] */
+	/* unsigned char data[hdr_size] (starting 64bit aligned) */
 };
 
 struct mail_index_keyword_header {