projects
/
ecparse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add id to hash tag
[ecparse.git]
/
CollectionReader.h
diff --git
a/CollectionReader.h
b/CollectionReader.h
index
72f652a
..
770c2a8
100644
(file)
--- a/
CollectionReader.h
+++ b/
CollectionReader.h
@@
-4,9
+4,12
@@
#pragma once
#pragma once
+#include <stdint.h>
#include "ReaderInput.h"
#include "ED2KLink.h"
#include "GrowingBuffer.h"
#include "ReaderInput.h"
#include "ED2KLink.h"
#include "GrowingBuffer.h"
+#include "StringTag.h"
+#include "BlobTag.h"
class CollectionReader {
class CollectionReader {
@@
-22,12
+25,17
@@
private:
bool ensureBufferCapacity(size_t byteCount);
void readMoreBytes();
bool ensureBufferCapacity(size_t byteCount);
void readMoreBytes();
+ BlobTag* readBlobTag(bool hader);
+ StringTag* readStringTag(bool header);
+
private:
ReaderInput* readerInput;
GrowingBuffer growingBuffer;
private:
ReaderInput* readerInput;
GrowingBuffer growingBuffer;
-
in
t version;
+
uint32_
t version;
bool firstLink;
bool isTextCollection;
bool firstLink;
bool isTextCollection;
+ uint32_t fileCollectionCount;
+ uint32_t collectionFileIndex;
};
};