@@ -23,7 +23,7 @@ namespace util {
23
23
// /
24
24
// / \return Value of the integer.
25
25
template <typename uint_t >
26
- constexpr uint_t
26
+ uint_t
27
27
readUint (void const * const buffer, size_t const length) {
28
28
constexpr size_t size (sizeof (uint_t ));
29
29
if (length < size) {
@@ -52,7 +52,7 @@ readUint(void const* const buffer, size_t const length) {
52
52
// /
53
53
// / \return pointer to the next byte after stored value
54
54
template <typename uint_t >
55
- constexpr uint8_t *
55
+ uint8_t *
56
56
writeUint (uint_t const value, void * const buffer, size_t const length) {
57
57
constexpr size_t size (sizeof (uint_t ));
58
58
if (length < size) {
@@ -72,37 +72,37 @@ writeUint(uint_t const value, void* const buffer, size_t const length) {
72
72
}
73
73
74
74
// / \brief uint16_t wrapper over readUint.
75
- constexpr inline uint16_t
75
+ inline uint16_t
76
76
readUint16 (void const * const buffer, size_t const length) {
77
77
return (readUint<uint16_t >(buffer, length));
78
78
}
79
79
80
80
// / \brief uint32_t wrapper over readUint.
81
- constexpr inline uint32_t
81
+ inline uint32_t
82
82
readUint32 (void const * const buffer, size_t const length) {
83
83
return (readUint<uint32_t >(buffer, length));
84
84
}
85
85
86
86
// / \brief uint16_t wrapper over readUint.
87
- constexpr inline uint64_t
87
+ inline uint64_t
88
88
readUint64 (void const * const buffer, size_t const length) {
89
89
return (readUint<uint64_t >(buffer, length));
90
90
}
91
91
92
92
// / \brief uint16_t wrapper over writeUint.
93
- constexpr inline uint8_t *
93
+ inline uint8_t *
94
94
writeUint16 (uint16_t const value, void * const buffer, size_t const length) {
95
95
return (writeUint (value, buffer, length));
96
96
}
97
97
98
98
// / \brief uint32_t wrapper over writeUint.
99
- constexpr inline uint8_t *
99
+ inline uint8_t *
100
100
writeUint32 (uint32_t const value, void * const buffer, size_t const length) {
101
101
return (writeUint (value, buffer, length));
102
102
}
103
103
104
104
// / \brief uint64_t wrapper over writeUint.
105
- constexpr inline uint8_t *
105
+ inline uint8_t *
106
106
writeUint64 (uint64_t const value, void * const buffer, size_t const length) {
107
107
return (writeUint (value, buffer, length));
108
108
}
0 commit comments