Constructor
Check if tag type is type T
Check if tag type is type T
Check if tag type is type T
Convert tag value
Convert tag value
Convert tag value
Convert tag value to float array
Convert tag value to integer
Convert tag value to integer array
Convert tag value to string
check if empty/exists/null
Alias seq allows us to have an enum of types. https://forum.dlang.org/post/kmdjfzpugudmwfrdgson@forum.dlang.org Thanks Paul!
Usage: auto t = TagValue(b, 'XX') where b is bam1_t* BAM record and XX is tag
This represents a tag value from a bam record This should be to the bam specification. It stores only a pointer to the tag and from there can be parsed into any of the tag types but only if the tag matches that type. c byte C ubyte s short S ushort i int I uint f float Bc array of type byte Z char array H hex?
Memory layout pipes delimit byte boundaries in an array 8/9 are example values 2 is a count of the array the ubyte * starts at the type char c | 8| s | | 8| i | | | | 8| B |i | | | | 2| | | | 8| | | | 9|