MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / new_data

Function new_data

Source/Misc/libr-bfd.c:519–527  ·  view source on GitHub ↗

* Create new data for a section using libbfd */

Source from the content-addressed store, hash-verified

517 * Create new data for a section using libbfd
518 */
519libr_data *new_data(libr_file *file_handle, libr_section *scn)
520{
521 /* NOTE: expanding data is handled by set_data for libbfd */
522 if(scn->userdata != NULL)
523 return scn->userdata;
524 scn->size = 0;
525 scn->userdata = malloc(0);
526 return scn->userdata;
527}
528
529/*
530 * Create new data for a section using libbfd (at least, do so memory-wise)

Callers 1

libr_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected