* Check whether a specific array element is NULL * * nullbitmap: pointer to array's null bitmap (NULL if none) * offset: 0-based linear element number of array element */
| 4668 | * offset: 0-based linear element number of array element |
| 4669 | */ |
| 4670 | static bool |
| 4671 | array_get_isnull(const bits8 *nullbitmap, int offset) |
| 4672 | { |
| 4673 | if (nullbitmap == NULL) |
| 4674 | return false; /* assume not null */ |
| 4675 | if (nullbitmap[offset / 8] & (1 << (offset % 8))) |
| 4676 | return false; /* not null */ |
| 4677 | return true; |
| 4678 | } |
| 4679 | |
| 4680 | /* |
| 4681 | * Set a specific array element's null-bitmap entry |
no outgoing calls
no test coverage detected