clean up comments

This commit is contained in:
ZappoMan 2013-11-23 13:23:03 -08:00
parent 00b3451729
commit 661152956a

View file

@ -4,6 +4,12 @@
// //
// Created by Brad Hefta-Gaub on 11/19/2013 // Created by Brad Hefta-Gaub on 11/19/2013
// //
// TO DO:
//
// * add stats tracking for number of bytes of octal code, bitmasks, and colors in a packet.
// * add compression
// * improve semantics for "reshuffle" - current approach will work for now, but wouldn't work
// with RLE because the colors in the levels would get reordered
// //
#ifndef __hifi__VoxelPacket__ #ifndef __hifi__VoxelPacket__
@ -32,6 +38,7 @@ public:
/// ends a level without discarding it /// ends a level without discarding it
void endLevel(); void endLevel();
/// appends a bitmask to the end of the stream, may fail if new data stream is too long to fit in packet
bool appendBitMask(unsigned char bitmask); bool appendBitMask(unsigned char bitmask);
/// updates the value of a bitmask from a previously appended portion of the uncompressed stream, might fail if the new /// updates the value of a bitmask from a previously appended portion of the uncompressed stream, might fail if the new
@ -42,6 +49,7 @@ public:
/// Might fail if the new bytes would cause packet to be less compressed, or if offset and length was out of range. /// Might fail if the new bytes would cause packet to be less compressed, or if offset and length was out of range.
bool updatePriorBytes(int offset, const unsigned char* replacementBytes, int length); bool updatePriorBytes(int offset, const unsigned char* replacementBytes, int length);
/// appends a color to the end of the stream, may fail if new data stream is too long to fit in packet
bool appendColor(rgbColor color); bool appendColor(rgbColor color);
/// returns a byte offset from beginning of the uncompressed stream based on offset from end. /// returns a byte offset from beginning of the uncompressed stream based on offset from end.
@ -61,9 +69,6 @@ public:
/// has some content been written to the packet /// has some content been written to the packet
bool hasContent() const { return (_bytesInUse > 0); } bool hasContent() const { return (_bytesInUse > 0); }
// XXXBHG: TO DO...
// * add stats tracking for number of bytes of octal code, bitmasks, and colors in a packet.
private: private:
/// appends raw bytes, might fail if byte would cause packet to be too large /// appends raw bytes, might fail if byte would cause packet to be too large
bool append(const unsigned char* data, int length); bool append(const unsigned char* data, int length);