mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 11:14:58 -06:00
21.04
This commit is contained in:
@@ -244,6 +244,7 @@ public:
|
||||
bool SetMTime(const FILETIME *mTime) throw();
|
||||
bool WritePart(const void *data, UInt32 size, UInt32 &processedSize) throw();
|
||||
bool Write(const void *data, UInt32 size, UInt32 &processedSize) throw();
|
||||
bool WriteFull(const void *data, size_t size) throw();
|
||||
bool SetEndOfFile() throw();
|
||||
bool SetLength(UInt64 length) throw();
|
||||
};
|
||||
@@ -315,6 +316,16 @@ public:
|
||||
bool Create(const char *name, bool createAlways);
|
||||
bool Open(const char *name, DWORD creationDisposition);
|
||||
ssize_t write_full(const void *data, size_t size, size_t &processed) throw();
|
||||
|
||||
bool WriteFull(const void *data, size_t size) throw()
|
||||
{
|
||||
size_t processed;
|
||||
ssize_t res = write_full(data, size, processed);
|
||||
if (res == -1)
|
||||
return false;
|
||||
return processed == size;
|
||||
}
|
||||
|
||||
bool SetLength(UInt64 length) throw();
|
||||
bool SetTime(const FILETIME *cTime, const FILETIME *aTime, const FILETIME *mTime) throw();
|
||||
bool SetMTime(const FILETIME *mTime) throw();
|
||||
|
||||
Reference in New Issue
Block a user