8 #ifndef BOTAN_GET_BYTE_H__
9 #define BOTAN_GET_BYTE_H__
11 #include <botan/types.h>
21 template<
typename T>
inline byte get_byte(
size_t byte_num, T input)
23 return static_cast<byte>(
24 input >> ((
sizeof(T)-1-(byte_num&(
sizeof(T)-1))) << 3)
byte get_byte(size_t byte_num, T input)