Class big_endian_policy

Synopsis

#include "breeze/endianness/endian_codec.hpp"

class big_endian_policy

Description

Big-endian policy for endian_codec.

Methods

index
shift_amount

Source

Lines 160-175 in breeze/endianness/endian_codec.hpp.

class big_endian_policy
{
public:
    template< typename T, typename Byte, std::ptrdiff_t n >
    static int          shift_amount()
    {
        return n * meta::width< Byte >::value ;
    }

    template< typename T, typename Byte >
    static std::ptrdiff_t
                        index( std::ptrdiff_t n )
    {
        return n ;
    }
} ;