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
114}114}
115 115
116 116
117void VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) {117int VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) {
118 118
119 unsigned char command = *sourceBuffer;119 unsigned char command = *sourceBuffer;
120 unsigned char *voxelData = sourceBuffer + 1;120 unsigned char *voxelData = sourceBuffer + 1;
@@ -154,6 +154,7 @@ void VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) { · 33 unmodified lines
154 }154 }
155 155
156 setupNewVoxelsForDrawing();156 setupNewVoxelsForDrawing();
157 return numBytes;
157}158}
158 159
159void VoxelSystem::setupNewVoxelsForDrawing() {160void VoxelSystem::setupNewVoxelsForDrawing() {