projects
/
ecparse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
increase version number to 0.1
[ecparse.git]
/
CollectionReader.h
diff --git
a/CollectionReader.h
b/CollectionReader.h
index
72f652a
..
023b226
100644
(file)
--- a/
CollectionReader.h
+++ b/
CollectionReader.h
@@
-4,9
+4,13
@@
#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"
+#include "HashTag.h"
class CollectionReader {
class CollectionReader {
@@
-22,12
+26,18
@@
private:
bool ensureBufferCapacity(size_t byteCount);
void readMoreBytes();
bool ensureBufferCapacity(size_t byteCount);
void readMoreBytes();
+ BlobTag* readBlobTag(bool header = false);
+ StringTag* readStringTag(bool header = false);
+ HashTag* readHashTag();
+
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;
};
};