Skip to content

Commit 93d18a7

Browse files
committed
[Fix] Remove std::vector byte order conversion overloads
Signed-off-by: Mariusz Rychlicki <mariuszrychlicki04@gmail.com>
1 parent 609b19c commit 93d18a7

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

include/scorpio_utils/endianness.hpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <stddef.h>
2222
#include <algorithm>
2323
#include <cstdint>
24-
#include <vector>
2524

2625
namespace scorpio_utils {
2726
__attribute__((noinline))
@@ -59,14 +58,4 @@ template<size_t T>
5958
inline void to_host_byte_order(std::array<uint8_t, T>& buffer) {
6059
to_network_byte_order(buffer);
6160
}
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-
}
7261
} // namespace scorpio_utils

0 commit comments

Comments
 (0)