mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Update platform to remove file size from CreateInputFile API.
PiperOrigin-RevId: 846311268
This commit is contained in:
committed by
Copybara-Service
parent
b88fbc6636
commit
a590b2a3e2
@@ -192,13 +192,13 @@ ImplementationPlatform::CreateConditionVariable(Mutex* mutex) {
|
||||
|
||||
ABSL_DEPRECATED("This interface will be deleted in the near future.")
|
||||
std::unique_ptr<InputFile> ImplementationPlatform::CreateInputFile(
|
||||
PayloadId payload_id, std::int64_t total_size) {
|
||||
PayloadId payload_id) {
|
||||
std::string file_name(std::to_string(payload_id));
|
||||
return windows::IOFile::CreateInputFile(GetDownloadPath(file_name));
|
||||
}
|
||||
|
||||
std::unique_ptr<InputFile> ImplementationPlatform::CreateInputFile(
|
||||
const std::string& file_path, size_t size) {
|
||||
const std::string& file_path) {
|
||||
return windows::IOFile::CreateInputFile(file_path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user