From d529e58c56d57863d6069992b23a83d744a6f843 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 15 Apr 2014 16:20:21 +0200 Subject: [PATCH] Fixed block transfer --- ApplicationCode/SocketInterface/RiaCaseInfoCommands.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ApplicationCode/SocketInterface/RiaCaseInfoCommands.cpp b/ApplicationCode/SocketInterface/RiaCaseInfoCommands.cpp index 2426f95252..e81b9db3ea 100644 --- a/ApplicationCode/SocketInterface/RiaCaseInfoCommands.cpp +++ b/ApplicationCode/SocketInterface/RiaCaseInfoCommands.cpp @@ -132,9 +132,10 @@ public: quint64 timestepByteCount = (quint64)(timestepResultCount*sizeof(qint32)); socketStream << timestepByteCount; - - // Write data as raw bytes, fast but does not handle byteswapping - RiaSocketTools::writeBlockData(server, server->currentClient(), (const char *)activeCellInfo.data(), columnCount*timestepByteCount); + for (size_t tIdx = 0; tIdx < columnCount; ++tIdx) + { + RiaSocketTools::writeBlockData(server, server->currentClient(), (const char *)activeCellInfo[tIdx].data(), timestepByteCount); + } return true; }