123456789101112131415161718192021222324252627282930313233343536 |
- #include "KeyBuffer.h"
- #include <algorithm>
- #include <cstring>
- namespace android {
- namespace vold {
- KeyBuffer operator+(KeyBuffer&& lhs, const KeyBuffer& rhs) {
- std::copy(rhs.begin(), rhs.end(), std::back_inserter(lhs));
- return std::move(lhs);
- }
- KeyBuffer operator+(KeyBuffer&& lhs, const char* rhs) {
- std::copy(rhs, rhs + strlen(rhs), std::back_inserter(lhs));
- return std::move(lhs);
- }
- }
- }
|