Lines Matching refs:value_type
38 template<typename value_type, endianness endian>
39 inline value_type byte_swap(value_type value) {
46 template<typename value_type,
49 inline value_type read(const void *memory) {
50 value_type ret;
54 (detail::PickAlignment<value_type, alignment>::value)),
55 sizeof(value_type));
56 return byte_swap<value_type, endian>(ret);
61 template<typename value_type, endianness endian, std::size_t alignment,
63 inline value_type readNext(const CharT *&memory) {
64 value_type ret = read<value_type, endian, alignment>(memory);
65 memory += sizeof(value_type);
70 template<typename value_type,
73 inline void write(void *memory, value_type value) {
74 value = byte_swap<value_type, endian>(value);
76 (detail::PickAlignment<value_type, alignment>::value)),
78 sizeof(value_type));
83 template<typename value_type,
87 operator value_type() const {
88 return endian::read<value_type, endian, alignment>(
92 void operator=(value_type newValue) {
93 endian::write<value_type, endian, alignment>(
97 packed_endian_specific_integral &operator+=(value_type newValue) {
102 packed_endian_specific_integral &operator-=(value_type newValue) {
108 AlignedCharArray<PickAlignment<value_type, alignment>::value,
109 sizeof(value_type)> Value;
115 operator value_type() const {
116 return endian::read<value_type, endian, alignment>(Ptr);
119 void operator=(value_type NewValue) {
120 endian::write<value_type, endian, alignment>(Ptr, NewValue);