Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines
page.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SPLIT_RETURN

Defines

#define PAIRSIZE(K, D)   (2*sizeof(uint16) + (K)->size + (D)->size)
#define BIGOVERHEAD   (4*sizeof(uint16))
#define KEYSIZE(K)   (4*sizeof(uint16) + (K)->size);
#define OVFLSIZE   (2*sizeof(uint16))
#define FREESPACE(P)   ((P)[(P)[0]+1])
#define OFFSET(P)   ((P)[(P)[0]+2])
#define PAIRFITS(P, K, D)
#define PAGE_META(N)   (((N)+3) * sizeof(uint16))

Class Documentation

struct SPLIT_RETURN

Definition at line 87 of file page.h.

Class Members
BUFHEAD * newp
uint16 next_addr
BUFHEAD * nextp
BUFHEAD * oldp

Define Documentation

#define BIGOVERHEAD   (4*sizeof(uint16))

Definition at line 77 of file page.h.

#define FREESPACE (   P)    ((P)[(P)[0]+1])

Definition at line 80 of file page.h.

#define KEYSIZE (   K)    (4*sizeof(uint16) + (K)->size);

Definition at line 78 of file page.h.

#define OFFSET (   P)    ((P)[(P)[0]+2])

Definition at line 81 of file page.h.

#define OVFLSIZE   (2*sizeof(uint16))

Definition at line 79 of file page.h.

#define PAGE_META (   N)    (((N)+3) * sizeof(uint16))

Definition at line 85 of file page.h.

#define PAIRFITS (   P,
  K,
  D 
)
Value:
(((P)[2] >= REAL_KEY) && \
           (PAIRSIZE((K),(D)) + OVFLSIZE) <= FREESPACE((P)))

Definition at line 82 of file page.h.

#define PAIRSIZE (   K,
  D 
)    (2*sizeof(uint16) + (K)->size + (D)->size)

Definition at line 76 of file page.h.