blob: 9f7d5d96efae7f5dd7b16817429981b34d039cbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "operators.h"
// binary code operators
std::vector<uint8_t> operator+(std::vector<uint8_t> a, const std::vector<uint8_t>& b) {
a.insert(a.end(), b.begin(), b.end());
return a;
}
std::vector<uint8_t> operator+(std::vector<uint8_t> a, const uint8_t& b) {
a.push_back(b);
return a;
}
|