diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-01-14 17:52:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-14 17:52:55 +0100 |
commit | 63966afece7d250b4ba4c03ad1f43ee7457b1dec (patch) | |
tree | fbdc3cdf92e3ed3bb2c0b657586d9885010323a7 /vespalib | |
parent | f909e2e5f34357af78e28dd4d948134a0fee50aa (diff) |
Revert "Revert "Revert "Balder/group multiple commits rebased 1"""
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/objects/nbostream.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/objects/nbostream.h b/vespalib/src/vespa/vespalib/objects/nbostream.h index 8eb42ddfd53..70a590f79d1 100644 --- a/vespalib/src/vespa/vespalib/objects/nbostream.h +++ b/vespalib/src/vespa/vespalib/objects/nbostream.h @@ -20,7 +20,7 @@ class nbostream public: using Buffer = Array<char>; using Alloc = alloc::Alloc; - enum State { ok=0, eof=0x01, oob=0x02}; + enum State { ok=0, eof=0x01}; nbostream(size_t initialSize=1024); protected: nbostream(const void * buf, size_t sz, bool longLivedBuffer); @@ -145,7 +145,6 @@ public: const char * peek() const { return &_rbuf[_rp]; } size_t rp() const { return _rp; } nbostream & rp(size_t pos) { if (pos > _wp) fail(eof); _rp = pos; return *this; } - nbostream & wp(size_t pos) { if (pos > _wbuf.size()) fail(oob); _wp = pos; return *this; } size_t wp() const { return _wp; } State state() const { return _state; } bool good() const { return _state == ok; } |