94 template <
typename char_t,
size_t extend>
97 static_assert(std::equality_comparable_with<char_t, char>,
98 "The given char type of the span must be comparable with char.");
100 static constexpr auto id1_pos = std::endian::native == std::endian::little ? 10 : 11;
117#if defined(SEQAN3_HAS_ZLIB)
122#if defined(SEQAN3_HAS_BZIP2)
pack_traits::drop_front< void > compression_formats
A seqan3::type_list containing the available compression formats.
Definition magic_header.hpp:130
typename decltype(detail::drop_front< pack_t... >())::type drop_front
Return a seqan3::type_list of all the types in the type pack, except the first.
Definition type_pack/traits.hpp:305
The internal SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
A tag signifying a bgzf compressed file.
Definition magic_header.hpp:62
static std::vector< std::string > file_extensions
The valid file extension for bgzf compression.
Definition magic_header.hpp:64
static bool validate_header(std::span< char_t, extend > header)
Checks if the given header is a bgzf header.
Definition magic_header.hpp:95
static constexpr std::array< char, 18 > magic_header
The magic byte sequence to disambiguate bgzf compressed files.
Definition magic_header.hpp:67
A tag signifying a bz2 compressed file.
Definition magic_header.hpp:40
static constexpr std::array< char, 3 > magic_header
The magic byte sequence to disambiguate bz2 compressed files.
Definition magic_header.hpp:45
static std::vector< std::string > file_extensions
The valid file extension for bz2 compression.
Definition magic_header.hpp:42
A tag signifying a gz compressed file.
Definition magic_header.hpp:29
static std::vector< std::string > file_extensions
The valid file extension for gz compression.
Definition magic_header.hpp:31
static constexpr std::array< char, 3 > magic_header
The magic byte sequence to disambiguate gz compressed files.
Definition magic_header.hpp:34
A tag signifying a zstd compressed file.
Definition magic_header.hpp:51
static std::vector< std::string > file_extensions
The valid file extension for zstd compression.
Definition magic_header.hpp:53
static constexpr std::array< char, 4 > magic_header
The magic byte sequence to disambiguate zstd compressed files.
Definition magic_header.hpp:56
Provides type traits for working with templates.
Provides various traits for template packs.
Provides concepts that do not have equivalents in C++20.