_CAT_MSG_HDR_SIZE
mem = nsets * _CAT_SET_HDR_SIZE + nmsgs * _CAT_MSG_HDR_SIZE + text_size;
nmsgs * _CAT_MSG_HDR_SIZE;
_CAT_MSG_HDR_SIZE > hdr.__mem)
+ _CAT_MSG_HDR_SIZE * mid);