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

Function buffer_clone

util/cbfstool/common.h:95–98  ·  view source on GitHub ↗

* Shallow copy a buffer. To clean up the resources, buffer_delete() * either one, but not both. */

Source from the content-addressed store, hash-verified

93 * Shallow copy a buffer. To clean up the resources, buffer_delete()
94 * either one, but not both. */
95static inline void buffer_clone(struct buffer *dest, const struct buffer *src)
96{
97 buffer_splice(dest, src, 0, src->size);
98}
99
100/*
101 * Shrink a buffer toward the end of its previous space.

Callers 15

get_fpt_buffFunction · 0.85
qualcomm_find_hashFunction · 0.85
mediatek_find_hashFunction · 0.85
parse_bzImage_to_payloadFunction · 0.85
shrink_bufferFunction · 0.85
cmd_clearFunction · 0.85
cmd_addFunction · 0.85
write_elfFunction · 0.85
rmodule_stage_to_elfFunction · 0.85
add_topswap_bootblockFunction · 0.85
cbfstool_convert_fspFunction · 0.85

Calls 1

buffer_spliceFunction · 0.85

Tested by

no test coverage detected