|
@@ -1348,21 +1348,18 @@ public:
|
|
|
const byte *rb = (const byte *)_buf.readDirect(rest);
|
|
|
bool ret = true;
|
|
|
// At the last byte of the rb (rb[rest-1]) is the stream live flag
|
|
|
- // True if the stream has more data
|
|
|
- // False at the end of stream
|
|
|
- // the previous byte (rb[rest-2]) is the flag to signals there are more
|
|
|
- // valid entry in this block
|
|
|
- // True if there are valid directory entry follows this flag
|
|
|
- // False if there are no more valid entry in this block aka end of block
|
|
|
- // If there are more data in the stream, the end of block flag should be remove
|
|
|
- if (rest&&(rb[rest-1]!=0)) {
|
|
|
+ // True if the stream has more data
|
|
|
+ // False at the end of stream
|
|
|
+ // The previous byte (rb[rest-2]) is the flag to signal there are more
|
|
|
+ // valid entries in this block
|
|
|
+ // True if there are valid directory entry follows this flag
|
|
|
+ // False if there are no more valid entry in this block aka end of block
|
|
|
+ // If there is more data in the stream, the end of block flag should be removed
|
|
|
+ if (rest&&(rb[rest-1]!=0))
|
|
|
+ {
|
|
|
rest--; // remove stream live flag
|
|
|
-
|
|
|
if(rest && (0 == rb[rest-1]))
|
|
|
- {
|
|
|
rest--; //Remove end of block flag
|
|
|
- }
|
|
|
-
|
|
|
ret = false; // continuation
|
|
|
}
|
|
|
buf.append(rest,rb);
|