MCPcopy Create free account
hub / github.com/coreboot/coreboot / buffer_seek

Function buffer_seek

util/cbfstool/common.h:103–108  ·  view source on GitHub ↗

* Shrink a buffer toward the end of its previous space. * Afterward, buffer_delete() remains the means of cleaning it up. */

Source from the content-addressed store, hash-verified

101 * Shrink a buffer toward the end of its previous space.
102 * Afterward, buffer_delete() remains the means of cleaning it up. */
103static inline void buffer_seek(struct buffer *b, size_t size)
104{
105 b->offset += size;
106 b->size -= size;
107 b->data += size;
108}
109
110/* Returns whether the buffer begins with the specified magic bytes. */
111static inline bool buffer_check_magic(const struct buffer *b, const char *magic,

Callers 15

get_fpt_buffFunction · 0.85
qualcomm_find_hash_mbnv7Function · 0.85
qualcomm_find_hashFunction · 0.85
mediatek_find_hashFunction · 0.85
write_memberFunction · 0.85
read_memberFunction · 0.85
shrink_bufferFunction · 0.85
cmd_clearFunction · 0.85
cmd_addFunction · 0.85
write_elfFunction · 0.85
parse_elf_to_xip_stageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected