Previous: Header Field Creation and Deletion, Up: Manipulating Header Fields


4.3.3 Resizing

Header fields are resized with the bpipe_hdrf_resize routine. Unlike data fields, which are resized upon input or output of a data packet, header fields are resized immediately. After a resize, any previous matrix-spec or data pointers (obtained with bpipe_hdrf_data) are invalid and must be retrieved again. (Note that since the BPMatrix structure returned by bpipe_hdrf_matrix is a copy of the field's matrix-spec, the application has the responsibility of freeing it.)

Resizing a field consists of specifying three pieces of information:

See bpipe_hdrf_resize.