SeqAn3  3.0.1
The Modern C++ library for sequence analysis.
endian.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
4 // This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5 // shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
6 // -----------------------------------------------------------------------------------------------------
7 
13 #pragma once
14 
15 #include <seqan3/core/platform.hpp>
16 
17 namespace seqan3::detail
18 {
19 
27 enum class endian
28 {
29 #ifdef _WIN32
30  little = 0,
31  big = 1,
32  native = little
33 #else
34  little = __ORDER_LITTLE_ENDIAN__,
35  big = __ORDER_BIG_ENDIAN__,
36  native = __BYTE_ORDER__
37 #endif
38 };
39 
40 } // namespace seqan3::detail
platform.hpp
Provides platform and dependency checks.