• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/elftoolchain/libdwarf/

Lines Matching refs:offsetp

33 _dwarf_read_lsb(uint8_t *data, uint64_t *offsetp, int bytes_to_read)
38 src = data + *offsetp;
59 *offsetp += bytes_to_read;
97 _dwarf_read_msb(uint8_t *data, uint64_t *offsetp, int bytes_to_read)
102 src = data + *offsetp;
125 *offsetp += bytes_to_read;
167 _dwarf_write_lsb(uint8_t *data, uint64_t *offsetp, uint64_t value,
172 dst = data + *offsetp;
195 *offsetp += bytes_to_write;
199 _dwarf_write_lsb_alloc(uint8_t **block, uint64_t *size, uint64_t *offsetp,
205 while (*offsetp + bytes_to_write > *size) {
214 _dwarf_write_lsb(*block, offsetp, value, bytes_to_write);
220 _dwarf_write_msb(uint8_t *data, uint64_t *offsetp, uint64_t value,
225 dst = data + *offsetp;
251 *offsetp += bytes_to_write;
255 _dwarf_write_msb_alloc(uint8_t **block, uint64_t *size, uint64_t *offsetp,
261 while (*offsetp + bytes_to_write > *size) {
270 _dwarf_write_msb(*block, offsetp, value, bytes_to_write);
276 _dwarf_read_sleb128(uint8_t *data, uint64_t *offsetp)
283 src = data + *offsetp;
288 (*offsetp)++;
322 _dwarf_write_sleb128_alloc(uint8_t **block, uint64_t *size, uint64_t *offsetp,
329 while ((len = _dwarf_write_sleb128(*block + *offsetp, *block + *size,
339 *offsetp += len;
345 _dwarf_read_uleb128(uint8_t *data, uint64_t *offsetp)
352 src = data + *offsetp;
357 (*offsetp)++;
385 _dwarf_write_uleb128_alloc(uint8_t **block, uint64_t *size, uint64_t *offsetp,
392 while ((len = _dwarf_write_uleb128(*block + *offsetp, *block + *size,
402 *offsetp += len;
451 _dwarf_read_string(void *data, Dwarf_Unsigned size, uint64_t *offsetp)
455 ret = src = (char *) data + *offsetp;
457 while (*src != '\0' && *offsetp < size) {
459 (*offsetp)++;
462 if (*src == '\0' && *offsetp < size)
463 (*offsetp)++;
469 _dwarf_write_string(void *data, uint64_t *offsetp, char *string)
473 dst = (char *) data + *offsetp;
475 (*offsetp) += strlen(string) + 1;
479 _dwarf_write_string_alloc(uint8_t **block, uint64_t *size, uint64_t *offsetp,
487 while (*offsetp + len > *size) {
496 _dwarf_write_string(*block, offsetp, string);
502 _dwarf_read_block(void *data, uint64_t *offsetp, uint64_t length)
506 ret = src = (uint8_t *) data + *offsetp;
508 (*offsetp) += length;
514 _dwarf_write_block(void *data, uint64_t *offsetp, uint8_t *blk,
519 dst = (uint8_t *) data + *offsetp;
521 (*offsetp) += length;
525 _dwarf_write_block_alloc(uint8_t **block, uint64_t *size, uint64_t *offsetp,
531 while (*offsetp + length > *size) {
540 _dwarf_write_block(*block, offsetp, blk, length);
546 _dwarf_write_padding(void *data, uint64_t *offsetp, uint8_t byte,
551 dst = (uint8_t *) data + *offsetp;
553 (*offsetp) += length;
557 _dwarf_write_padding_alloc(uint8_t **block, uint64_t *size, uint64_t *offsetp,
562 while (*offsetp + cnt > *size) {
571 _dwarf_write_padding(*block, offsetp, byte, cnt);