bcf_update_format

bcf_update_format_*() - functions for updating FORMAT fields @values: pointer to the array of values, the same number of elements is expected for each sample. Missing values must be padded with bcf_*_missing or bcf_*_vector_end values. @n: number of values in the array. If n==0, existing tag is removed.

The function bcf_update_format_string() is a higher-level (slower) variant of bcf_update_format_char(). The former accepts array of \0-terminated strings whereas the latter requires that the strings are collapsed into a single array of fixed-length strings. In case of strings with variable length, shorter strings can be \0-padded. Note that the collapsed strings passed to bcf_update_format_char() are not \0-terminated.

Returns 0 on success or negative value on error.

extern (C)
int
bcf_update_format
(
const(bcf_hdr_t)* hdr
,,
const(char)* key
,
const(void)* values
,
int n
,
int type
)

Meta