|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Data Structures | |
| struct | VarBit |
Macros | |
| #define | PG_GETARG_VARBIT_P(n) DatumGetVarBitP(PG_GETARG_DATUM(n)) |
| #define | PG_GETARG_VARBIT_P_COPY(n) DatumGetVarBitPCopy(PG_GETARG_DATUM(n)) |
| #define | PG_RETURN_VARBIT_P(x) return VarBitPGetDatum(x) |
| #define | VARBITHDRSZ sizeof(int32) |
| #define | VARBITLEN(PTR) (((VarBit *) (PTR))->bit_len) |
| #define | VARBITS(PTR) (((VarBit *) (PTR))->bit_dat) |
| #define | VARBITBYTES(PTR) (VARSIZE(PTR) - VARHDRSZ - VARBITHDRSZ) |
| #define | VARBITPAD(PTR) (VARBITBYTES(PTR)*BITS_PER_BYTE - VARBITLEN(PTR)) |
| #define | VARBITTOTALLEN(BITLEN) |
| #define | VARBITMAXLEN (INT_MAX - BITS_PER_BYTE + 1) |
| #define | VARBITEND(PTR) (((bits8 *) (PTR)) + VARSIZE(PTR)) |
| #define | BITMASK 0xFF |
Functions | |
| static VarBit * | DatumGetVarBitP (Datum X) |
| static VarBit * | DatumGetVarBitPCopy (Datum X) |
| static Datum | VarBitPGetDatum (const VarBit *X) |
| #define PG_GETARG_VARBIT_P | ( | n | ) | DatumGetVarBitP(PG_GETARG_DATUM(n)) |
| #define PG_GETARG_VARBIT_P_COPY | ( | n | ) | DatumGetVarBitPCopy(PG_GETARG_DATUM(n)) |
| #define PG_RETURN_VARBIT_P | ( | x | ) | return VarBitPGetDatum(x) |
| #define VARBITBYTES | ( | PTR | ) | (VARSIZE(PTR) - VARHDRSZ - VARBITHDRSZ) |
| #define VARBITMAXLEN (INT_MAX - BITS_PER_BYTE + 1) |
| #define VARBITPAD | ( | PTR | ) | (VARBITBYTES(PTR)*BITS_PER_BYTE - VARBITLEN(PTR)) |
| #define VARBITTOTALLEN | ( | BITLEN | ) |
Definition at line 45 of file varbit.h.
References PG_DETOAST_DATUM.
Definition at line 57 of file varbit.h.
References PointerGetDatum().
Referenced by bitshiftleft(), and bitshiftright().