Skip to content
Snippets Groups Projects
Commit 1c6088fa authored by Andrea Zoli's avatar Andrea Zoli
Browse files

Invert bigendian flag on ByteStream swapWord().

parent 8efb94d6
Branches
Tags
No related merge requests found
...@@ -494,6 +494,8 @@ ByteStreamPtr PacketLib::ByteStream::getUnpaddedCopy(dword chunkSize, dword padS ...@@ -494,6 +494,8 @@ ByteStreamPtr PacketLib::ByteStream::getUnpaddedCopy(dword chunkSize, dword padS
} }
void PacketLib::ByteStream::swapWord() { void PacketLib::ByteStream::swapWord() {
bigendian = !bigendian;
dword dim = byteInTheStream; dword dim = byteInTheStream;
for(dword i = 0; i< dim; i+=2) for(dword i = 0; i< dim; i+=2)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment