/* This is called AFTER we have verified that there is room on the page for the pair (PAIRFITS has returned true) so we go right ahead and start moving stuff on.  */
static void putpair(char *p, const DBT *key, const DBT *val)
/* This is called AFTER we have verified that there is room on the page for the pair (PAIRFITS has returned true) so we go right ahead and start moving stuff on.  */
static void putpair(char *p, const DBT *key, const DBT *val)
{
	register u_int16_t *bp, n, off;
	bp = (u_int16_t *)p;
	n = bp[0];
	off = OFFSET(bp) - key->size;
	memmove(p + off, key->data, key->size);
	bp[++n] = off;
	off -= val->size;
	memmove(p + off, val->data, val->size);
	bp[++n] = off;
	bp[0] = n;
	bp[n + 1] = off - ((n + 3) * sizeof(u_int16_t));
	bp[n + 2] = off;
}