Lines Matching refs:offset
139 * Interpret it as an offset into the database file
143 dbm_get(int32_t offset)
145 offset = be32toh(offset);
146 if (offset < 0) {
147 warnx("dbm_get: Database corrupt: offset %d", offset);
150 if (offset >= max_offset) {
151 warnx("dbm_get: Database corrupt: offset %d > %d",
152 offset, max_offset);
155 return dbm_base + offset;
161 * Get a pointer to one with the number "offset".
164 dbm_getint(int32_t offset)
166 return (int32_t *)dbm_base + offset;