Use size_t instead of ssize_t for Windows compatibility

This commit is contained in:
Sebastian Messmer 2018-08-07 19:21:06 -07:00
parent 1233d44b35
commit 1eaf28dfe4
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ unique_ref<FileBlob> FileBlob::InitializeEmptyFile(unique_ref<Blob> blob, const
return make_unique_ref<FileBlob>(std::move(blob)); return make_unique_ref<FileBlob>(std::move(blob));
} }
ssize_t FileBlob::read(void *target, uint64_t offset, uint64_t count) const { size_t FileBlob::read(void *target, uint64_t offset, uint64_t count) const {
return baseBlob().tryRead(target, offset, count); return baseBlob().tryRead(target, offset, count);
} }

View File

@ -13,7 +13,7 @@ namespace cryfs {
FileBlob(cpputils::unique_ref<blobstore::Blob> blob); FileBlob(cpputils::unique_ref<blobstore::Blob> blob);
ssize_t read(void *target, uint64_t offset, uint64_t count) const; size_t read(void *target, uint64_t offset, uint64_t count) const;
void write(const void *source, uint64_t offset, uint64_t count); void write(const void *source, uint64_t offset, uint64_t count);