From: Henry Amrhein Date: Tue, 15 Jan 2013 22:54:24 +0000 (-0800) Subject: razf.h: added RAZF_STRUCT_SIZE macro X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=samtools.git;a=commitdiff_plain;h=c45b6d37c739f7c9c4b2ae04c4d6027a9c506222 razf.h: added RAZF_STRUCT_SIZE macro --- diff --git a/razf.h b/razf.h index 60a0c96..d0f93ec 100644 --- a/razf.h +++ b/razf.h @@ -127,6 +127,8 @@ extern "C" { uint64_t razf_tell2(RAZF *rz); int64_t razf_seek2(RAZF *rz, uint64_t voffset, int where); +#define RAZF_STRUCT_SIZE (sizeof(RAZF) + sizeof(z_stream) + (RZ_BUFFER_SIZE * 2) + sizeof(ZBlockIndex) + sizeof(gz_header) + 7) + #ifdef __cplusplus } #endif