Lines Matching refs:size
21 * object and a page list. A lock object consists of a 16-bit size
52 #define RET_SIZE(size, count) ((size) + \
65 #define PUT_SIZE(dp, size) do { u_int16_t __s = (size); \
77 (obj)->data, (obj)->size); \
79 DB_ALIGN((obj)->size, \
90 #define GET_SIZE(dp, size) do { LOGCOPY_16(env, &size, dp); \
112 u_int32_t i, j, nfid, npgno, size;
116 if ((size = list_dbt->size) == 0)
131 size = RET_SIZE(obj->size, 1);
132 if ((ret = __os_malloc(env, size, &data)) != 0)
138 PUT_SIZE(dp, obj->size);
148 if (obj->size != sizeof(DB_LOCK_ILOCK))
158 if (obj[i].size != sizeof(DB_LOCK_ILOCK))
175 not_ilock: size = nfid * sizeof(DB_LOCK_ILOCK);
176 size += npgno * sizeof(db_pgno_t);
177 /* Add the number of nonstandard locks and get their size. */
180 size += obj[i].size;
184 size = RET_SIZE(size, nfid);
185 if ((ret = __os_malloc(env, size, &data)) != 0)
193 PUT_SIZE(dp, obj[i].size);
206 list_dbt->size = size;
229 u_int16_t npgno, size;
234 if (list->size == 0)
248 if ((ret = __os_malloc(env, list->size, &data)) != 0)
250 memcpy(data, list->data, list->size);
260 GET_SIZE(dp, size);
264 obj_dbt.size = size;
265 dp = ((u_int8_t *)dp) + DB_ALIGN(size, sizeof(u_int32_t));
296 if (d1->size != sizeof(DB_LOCK_ILOCK)) {
297 if (d2->size != sizeof(DB_LOCK_ILOCK))
298 return (UINT32_CMP(d1->size, d2->size));
301 } else if (d2->size != sizeof(DB_LOCK_ILOCK))
321 u_int16_t npgno, size;
327 if (list->size == 0)
335 GET_SIZE(dp, size);
355 dp = ((u_int8_t *)dp) + DB_ALIGN(size, sizeof(u_int32_t));