SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
seqan3::detail::bgzf_compression Struct Reference

A tag signifying a bgzf compressed file. More...

#include <seqan3/io/detail/magic_header.hpp>

Static Public Member Functions

template<typename char_t , size_t extend>
static bool validate_header (std::span< char_t, extend > header)
 Checks if the given header is a bgzf header. More...
 

Static Public Attributes

static std::vector< std::stringfile_extensions
 The valid file extension for bgzf compression. More...
 
static constexpr std::array< char, 18 > magic_header
 The magic byte sequence to disambiguate bgzf compressed files. More...
 

Detailed Description

A tag signifying a bgzf compressed file.

Member Function Documentation

◆ validate_header()

template<typename char_t , size_t extend>
static bool seqan3::detail::bgzf_compression::validate_header ( std::span< char_t, extend >  header)
inlinestatic

Checks if the given header is a bgzf header.

Parameters
[in]headerThe header to validate.
Returns
true if it is a bgzf header, otherwise false.

Member Data Documentation

◆ file_extensions

std::vector<std::string> seqan3::detail::bgzf_compression::file_extensions
inlinestatic
Initial value:
{
{"bgzf"}
}

The valid file extension for bgzf compression.

◆ magic_header

constexpr std::array<char, 18> seqan3::detail::bgzf_compression::magic_header
staticconstexpr
Initial value:
{
'\x04', '\x00', '\x00', '\x00', '\x00', '\x00', '\xff', '\x06', '\x00',
'\x42', '\x43', '\x02', '\x00', '\x00', '\x00'
}
static constexpr std::array< char, 3 > magic_header
The magic byte sequence to disambiguate gz compressed files.
Definition: magic_header.hpp:40

The magic byte sequence to disambiguate bgzf compressed files.


The documentation for this struct was generated from the following file: