History

have parseData return the number of bytes consumed

Stephen Birarda committed 13 years ago

Commit 49563701 parent 8a3135a11 files · +47 −37Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 11 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+2−1
@@ -114,7 +114,7 @@ float VoxelSystem::getVoxelsBytesReadPerSecondAverage() { · 113 unmodified lines
114114 }
115115
116116
117−void VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) {
117+int VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) {
118118
119119 unsigned char command = *sourceBuffer;
120120 unsigned char *voxelData = sourceBuffer + 1;
@@ -154,6 +154,7 @@ void VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) { · 33 unmodified lines
154154 }
155155
156156 setupNewVoxelsForDrawing();
157+ return numBytes;
157158 }
158159
159160 void VoxelSystem::setupNewVoxelsForDrawing() {