diff options
author | myltsev <myltsev@yandex-team.ru> | 2022-02-10 16:46:03 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:03 +0300 |
commit | 9166d66c30c23c9e85a7c88185a068987148d23f (patch) | |
tree | 421bdcec5755d9e441c485560aab5ab8d74c7475 /util/system/file.h | |
parent | 8d3a5ed3a188a34167eaee54f1691ce5c9edf2f3 (diff) | |
download | ydb-9166d66c30c23c9e85a7c88185a068987148d23f.tar.gz |
Restoring authorship annotation for <myltsev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/file.h')
-rw-r--r-- | util/system/file.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/util/system/file.h b/util/system/file.h index 9502e159b6..62622501c9 100644 --- a/util/system/file.h +++ b/util/system/file.h @@ -172,28 +172,28 @@ public: void LinkTo(const TFile& f) const; TFile Duplicate() const; - // Reads up to 1 GB without retrying, returns -1 on error - i32 RawRead(void* buf, size_t len); - // Reads up to 1 GB without retrying, throws on error - size_t ReadOrFail(void* buf, size_t len); - // Retries incomplete reads until EOF, throws on error + // Reads up to 1 GB without retrying, returns -1 on error + i32 RawRead(void* buf, size_t len); + // Reads up to 1 GB without retrying, throws on error + size_t ReadOrFail(void* buf, size_t len); + // Retries incomplete reads until EOF, throws on error size_t Read(void* buf, size_t len); - // Reads exactly len bytes, throws on premature EOF or error + // Reads exactly len bytes, throws on premature EOF or error void Load(void* buf, size_t len); - - // Retries incomplete writes, will either write len bytes or throw + + // Retries incomplete writes, will either write len bytes or throw void Write(const void* buf, size_t len); - - // Retries incomplete reads until EOF, throws on error + + // Retries incomplete reads until EOF, throws on error size_t Pread(void* buf, size_t len, i64 offset) const; // Single pread call i32 RawPread(void* buf, ui32 len, i64 offset) const; - // Reads exactly len bytes, throws on premature EOF or error + // Reads exactly len bytes, throws on premature EOF or error void Pload(void* buf, size_t len, i64 offset) const; - - // Retries incomplete writes, will either write len bytes or throw + + // Retries incomplete writes, will either write len bytes or throw void Pwrite(const void* buf, size_t len, i64 offset) const; - + void Flock(int op); //do not use, their meaning very platform-dependant |