summaryrefslogtreecommitdiffstats
path: root/util/stream/mem.cpp
diff options
context:
space:
mode:
authortobo <[email protected]>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:27 +0300
commit55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/stream/mem.cpp
parent7fe839092527589b38f014d854c51565b3c1adfa (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/stream/mem.cpp')
-rw-r--r--util/stream/mem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/stream/mem.cpp b/util/stream/mem.cpp
index 4f2b73082d2..22a3339e274 100644
--- a/util/stream/mem.cpp
+++ b/util/stream/mem.cpp
@@ -39,7 +39,7 @@ void TMemoryInput::DoUndo(size_t len) {
TMemoryOutput::~TMemoryOutput() = default;
size_t TMemoryOutput::DoNext(void** ptr) {
- Y_ENSURE(Buf_ < End_, TStringBuf("memory output stream exhausted"));
+ Y_ENSURE(Buf_ < End_, TStringBuf("memory output stream exhausted"));
*ptr = Buf_;
size_t bufferSize = End_ - Buf_;
Buf_ = End_;
@@ -53,13 +53,13 @@ void TMemoryOutput::DoUndo(size_t len) {
void TMemoryOutput::DoWrite(const void* buf, size_t len) {
char* end = Buf_ + len;
- Y_ENSURE(end <= End_, TStringBuf("memory output stream exhausted"));
+ Y_ENSURE(end <= End_, TStringBuf("memory output stream exhausted"));
memcpy(Buf_, buf, len);
Buf_ = end;
}
void TMemoryOutput::DoWriteC(char c) {
- Y_ENSURE(Buf_ < End_, TStringBuf("memory output stream exhausted"));
+ Y_ENSURE(Buf_ < End_, TStringBuf("memory output stream exhausted"));
*Buf_++ = c;
}