summaryrefslogtreecommitdiffstats
path: root/util/stream/aligned.cpp
diff options
context:
space:
mode:
authorAlexander Fokin <[email protected]>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/stream/aligned.cpp
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
Restoring authorship annotation for Alexander Fokin <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/stream/aligned.cpp')
-rw-r--r--util/stream/aligned.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/util/stream/aligned.cpp b/util/stream/aligned.cpp
index 9e280858a77..2fd12d15b74 100644
--- a/util/stream/aligned.cpp
+++ b/util/stream/aligned.cpp
@@ -1,30 +1,30 @@
#include "aligned.h"
-
-size_t TAlignedInput::DoRead(void* ptr, size_t len) {
- size_t ret = Stream_->Read(ptr, len);
- Position_ += ret;
- return ret;
-}
-
-size_t TAlignedInput::DoSkip(size_t len) {
- size_t ret = Stream_->Skip(len);
- Position_ += ret;
- return ret;
-}
-
+
+size_t TAlignedInput::DoRead(void* ptr, size_t len) {
+ size_t ret = Stream_->Read(ptr, len);
+ Position_ += ret;
+ return ret;
+}
+
+size_t TAlignedInput::DoSkip(size_t len) {
+ size_t ret = Stream_->Skip(len);
+ Position_ += ret;
+ return ret;
+}
+
size_t TAlignedInput::DoReadTo(TString& st, char ch) {
- size_t ret = Stream_->ReadTo(st, ch);
- Position_ += ret;
- return ret;
-}
-
+ size_t ret = Stream_->ReadTo(st, ch);
+ Position_ += ret;
+ return ret;
+}
+
ui64 TAlignedInput::DoReadAll(IOutputStream& out) {
- ui64 ret = Stream_->ReadAll(out);
- Position_ += ret;
- return ret;
-}
-
-void TAlignedOutput::DoWrite(const void* ptr, size_t len) {
- Stream_->Write(ptr, len);
- Position_ += len;
-}
+ ui64 ret = Stream_->ReadAll(out);
+ Position_ += ret;
+ return ret;
+}
+
+void TAlignedOutput::DoWrite(const void* ptr, size_t len) {
+ Stream_->Write(ptr, len);
+ Position_ += len;
+}