Fix \r\n handling in stream read and write functions

This commit is contained in:
2023-01-07 15:43:39 +01:00
parent 68371b9b17
commit fee7ec9cc3
3 changed files with 29 additions and 16 deletions

View File

@@ -104,6 +104,7 @@ namespace uPDFParser
bool parseXref();
bool parseTrailer();
char prevChar();
std::string nextToken(bool exceptionOnEOF=true, bool readComment=false);
DataType* parseType(std::string& token, Object* object, std::map<std::string, DataType*>& dict);
@@ -121,6 +122,7 @@ namespace uPDFParser
void writeBuffer(int fd, const char* buffer, int size);
void writeUpdate(const std::string& filename);
char c;
int version_major, version_minor;
std::vector<Object*> _objects;
Object trailer, *xrefObject;