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

Function buffer_init

util/cbfstool/common.h:70–77  ·  view source on GitHub ↗

Initialize a buffer with the given constraints. */

Source from the content-addressed store, hash-verified

68
69/* Initialize a buffer with the given constraints. */
70static inline void buffer_init(struct buffer *b, char *name, void *data,
71 size_t size)
72{
73 b->name = name;
74 b->data = data;
75 b->size = size;
76 b->offset = 0;
77}
78
79/* Splice a buffer into another buffer. Note that it's up to the caller to
80 * bounds check the offset and size. The resulting buffer is backed by the same

Callers 9

bzp_add_segmentFunction · 0.85
rmodule_stage_to_elfFunction · 0.85
cbfs_stage_make_elfFunction · 0.85
cbfs_payload_make_elfFunction · 0.85
cbfs_export_entryFunction · 0.85
strtab_initFunction · 0.85
symtab_initFunction · 0.85
fixup_relocationsFunction · 0.85
rel_sectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected