add struct size
This commit is contained in:
parent
c55769e715
commit
fb2c3da530
|
@ -0,0 +1,15 @@
|
|||
#include <stdio.h>
|
||||
|
||||
/**
|
||||
* quicklist lzf 压缩对象
|
||||
* */
|
||||
typedef struct quicklistLZF {
|
||||
unsigned int sz; /* LZF size in bytes*/
|
||||
char compressed[];
|
||||
} quicklistLZF;
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("size=%d\n", sizeof(quicklistLZF));
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue