diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-11-28 18:51:23 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-11-28 18:51:23 (GMT) |
commit | 1687720a5fe51d32e1544371eaa75af162f35a31 (patch) | |
tree | a876648b981f58cd0299ee4754ae4e6620a6b1f1 /src/H5Oginfo.c | |
parent | 0bd83631d5ed24fe948a273e8a4d4bd8f128a86c (diff) | |
download | hdf5-1687720a5fe51d32e1544371eaa75af162f35a31.zip hdf5-1687720a5fe51d32e1544371eaa75af162f35a31.tar.gz hdf5-1687720a5fe51d32e1544371eaa75af162f35a31.tar.bz2 |
[svn-r12991] Description:
Reduce the size of some of the group information to more reasonable bounds.
(16-bit values instead of 32-bit values).
Tested on:
Linux/32 2.6 (chicago)
Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5Oginfo.c')
-rw-r--r-- | src/H5Oginfo.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/H5Oginfo.c b/src/H5Oginfo.c index f7c834f..95a19ab 100644 --- a/src/H5Oginfo.c +++ b/src/H5Oginfo.c @@ -119,12 +119,12 @@ H5O_ginfo_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p) ginfo->track_corder = (flags & H5O_GINFO_FLAG_TRACK_CORDER) ? TRUE : FALSE; /* Get the max. # of links to store compactly & the min. # of links to store densely */ - UINT32DECODE(p, ginfo->max_compact) - UINT32DECODE(p, ginfo->min_dense) + UINT16DECODE(p, ginfo->max_compact) + UINT16DECODE(p, ginfo->min_dense) /* Get the estimated # of entries & name lengths */ - UINT32DECODE(p, ginfo->est_num_entries) - UINT32DECODE(p, ginfo->est_name_len) + UINT16DECODE(p, ginfo->est_num_entries) + UINT16DECODE(p, ginfo->est_name_len) /* Set return value */ ret_value = ginfo; @@ -174,12 +174,12 @@ H5O_ginfo_encode(H5F_t UNUSED *f, uint8_t *p, const void *_mesg) *p++ = flags; /* Store the max. # of links to store compactly & the min. # of links to store densely */ - UINT32ENCODE(p, ginfo->max_compact) - UINT32ENCODE(p, ginfo->min_dense) + UINT16ENCODE(p, ginfo->max_compact) + UINT16ENCODE(p, ginfo->min_dense) /* Estimated # of entries & name lengths */ - UINT32ENCODE(p, ginfo->est_num_entries) - UINT32ENCODE(p, ginfo->est_name_len) + UINT16ENCODE(p, ginfo->est_num_entries) + UINT16ENCODE(p, ginfo->est_name_len) FUNC_LEAVE_NOAPI(SUCCEED) } /* end H5O_ginfo_encode() */ @@ -257,10 +257,10 @@ H5O_ginfo_size(const H5F_t UNUSED *f, const void UNUSED *_mesg) /* Set return value */ ret_value = 1 + /* Version */ 1 + /* Flags */ - 4 + /* "Max compact" links */ - 4 + /* "Min dense" links */ - 4 + /* Estimated # of entries in group */ - 4; /* Estimated length of name of entry in group */ + 2 + /* "Max compact" links */ + 2 + /* "Min dense" links */ + 2 + /* Estimated # of entries in group */ + 2; /* Estimated length of name of entry in group */ FUNC_LEAVE_NOAPI(ret_value) } /* end H5O_ginfo_size() */ |