| /*------------------------------------------------------------------------- | |
| * | |
| * off.h | |
| * POSTGRES disk "offset" definitions. | |
| * | |
| * | |
| * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group | |
| * Portions Copyright (c) 1994, Regents of the University of California | |
| * | |
| * src/include/storage/off.h | |
| * | |
| *------------------------------------------------------------------------- | |
| */ | |
| /* | |
| * OffsetNumber: | |
| * | |
| * this is a 1-based index into the linp (ItemIdData) array in the | |
| * header of each disk page. | |
| */ | |
| typedef uint16 OffsetNumber; | |
| /* ---------------- | |
| * support macros | |
| * ---------------- | |
| */ | |
| /* | |
| * OffsetNumberIsValid | |
| * True iff the offset number is valid. | |
| */ | |
| /* | |
| * OffsetNumberNext | |
| * OffsetNumberPrev | |
| * Increments/decrements the argument. These macros look pointless | |
| * but they help us disambiguate the different manipulations on | |
| * OffsetNumbers (e.g., sometimes we subtract one from an | |
| * OffsetNumber to move back, and sometimes we do so to form a | |
| * real C array index). | |
| */ | |