1 #ifndef gamgee__variant_field_utils__guard
2 #define gamgee__variant_field_utils__guard
66 #endif // gamgee__variant_field_utils__guard
VariantFieldType
an enumeration of the types in htslib for the format field values
Definition: variant_field_type.h:16
std::string convert_data_to_string(const uint8_t *data_ptr, const int index, const uint8_t num_bytes_per_value, const VariantFieldType &type)
converts the value in an index from the byte array into string
Definition: variant_field_type.cpp:77
bool is_string_type(const int32_t &type)
check if type is of type string
Definition: variant_field_type.h:59
Definition: exceptions.h:9
uint8_t size_for_type(const VariantFieldType &type, const bcf_fmt_t *const format_ptr)
returns the number of bytes for a given VariantFieldType
Definition: variant_field_type.cpp:102
int32_t convert_data_to_integer(const uint8_t *data_ptr, const int index, const uint8_t num_bytes_per_value, const VariantFieldType &type)
converts the value in an index from the byte array into int32_t
Definition: variant_field_type.cpp:11
float convert_data_to_float(const uint8_t *data_ptr, const int index, const uint8_t num_bytes_per_value, const VariantFieldType &type)
converts the value in an index from the byte array into float
Definition: variant_field_type.cpp:41