diff options
| author | Anton Samokhvalov <[email protected]> | 2022-02-10 16:45:17 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:17 +0300 | 
| commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
| tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/direct_io.h | |
| parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/direct_io.h')
| -rw-r--r-- | util/system/direct_io.h | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/direct_io.h b/util/system/direct_io.h index b228af21055..6a3325a9608 100644 --- a/util/system/direct_io.h +++ b/util/system/direct_io.h @@ -1,8 +1,8 @@  #pragma once -#include "align.h"  -  -#include "file.h"  +#include "align.h" + +#include "file.h"  #include <util/generic/buffer.h>  // Supports Linux Direct-IO: @@ -13,7 +13,7 @@ class TDirectIOBufferedFile {  public:      TDirectIOBufferedFile(const TString& path, EOpenMode oMode, size_t buflen = 1 << 17);      ~TDirectIOBufferedFile(); -  +      void FlushData();      void Finish();      size_t Read(void* buffer, size_t byteCount); @@ -49,7 +49,7 @@ private:      inline bool IsAligned(i64 value) {          return Alignment ? value == AlignDown<i64>(value, Alignment) : true;      } -  +      inline bool IsAligned(const void* value) {          return Alignment ? value == AlignDown(value, Alignment) : true;      } @@ -60,7 +60,7 @@ private:      void WriteToBuffer(const void* buf, size_t len, ui64 position);      void SetDirectIO(bool value); -private:  +private:      TFile File;      size_t Alignment;      size_t BufLen;  | 
