We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 609b19c commit 93d18a7Copy full SHA for 93d18a7
1 file changed
include/scorpio_utils/endianness.hpp
@@ -21,7 +21,6 @@
21
#include <stddef.h>
22
#include <algorithm>
23
#include <cstdint>
24
-#include <vector>
25
26
namespace scorpio_utils {
27
__attribute__((noinline))
@@ -59,14 +58,4 @@ template<size_t T>
59
58
inline void to_host_byte_order(std::array<uint8_t, T>& buffer) {
60
to_network_byte_order(buffer);
61
}
62
-
63
-inline void to_network_byte_order(std::vector<uint8_t>& buffer) {
64
- if (!is_big_endian) {
65
- std::reverse(buffer.begin(), buffer.end());
66
- }
67
-}
68
69
-inline void to_host_byte_order(std::vector<uint8_t>& buffer) {
70
- to_network_byte_order(buffer);
71
72
} // namespace scorpio_utils
0 commit comments