Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
variant_field_type.cpp File Reference
#include "variant_field_type.h"
#include "htslib/vcf.h"
#include <string>
#include <stdexcept>

Namespaces

 gamgee
 
 gamgee::utils
 utility functions for the gamgee library
 

Functions

int32_t gamgee::utils::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 More...
 
float gamgee::utils::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 More...
 
std::string gamgee::utils::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 More...
 
uint8_t gamgee::utils::size_for_type (const VariantFieldType &type, const bcf_fmt_t *const format_ptr)
 returns the number of bytes for a given VariantFieldType More...
 
uint8_t gamgee::utils::size_for_type (const VariantFieldType &type, const bcf_info_t *const info_ptr)
 returns the number of bytes for a given VariantFieldType More...