Use size_t instead of ssize_t for Windows compatibility
This commit is contained in:
parent
1233d44b35
commit
1eaf28dfe4
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user