Check for potential write error (or not buffer full consumed)

This commit is contained in:
2022-12-23 17:51:01 +01:00
parent c22babf3c4
commit 68371b9b17
3 changed files with 37 additions and 15 deletions

View File

@@ -118,6 +118,7 @@ namespace uPDFParser
Name* parseName(std::string& token);
void repairTrailer();
void writeBuffer(int fd, const char* buffer, int size);
void writeUpdate(const std::string& filename);
int version_major, version_minor;