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 c134e7c commit d9c9fccCopy full SHA for d9c9fcc
Buffer.cpp
@@ -63,7 +63,8 @@ template <class T> inline void Buffer::append(const T &val) noexcept {
63
unsigned int size = sizeof(T);
64
unsigned const char *array = reinterpret_cast<unsigned const char*>(&val);
65
66
- buffer.insert(buffer.end(), array, array + size);
+ for (unsigned int i = 0; i < size; ++i)
67
+ buffer.push_back(array[size - i - 1]);
68
}
69
70
void Buffer::appendBoolean(bool val) noexcept {
0 commit comments