diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-11-23 16:15:50 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-11-23 21:19:50 +0100 |
commit | fada14b948cac147198e3b685b5dd8cb72dc2911 (patch) | |
tree | 4a84ed9e578c3297a59e5cb06c1667551fafc346 /src/streams.h | |
parent | fa8bdb048e65cae2d26bea3f991717a856e2fb39 (diff) |
Treat CDataStream bytes as uint8_t
Also, rename CSerializeData to SerializeData
Diffstat (limited to 'src/streams.h')
-rw-r--r-- | src/streams.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/streams.h b/src/streams.h index 53924d76ed..4b34cbfd86 100644 --- a/src/streams.h +++ b/src/streams.h @@ -203,7 +203,7 @@ public: class CDataStream { protected: - typedef CSerializeData vector_type; + using vector_type = SerializeData; vector_type vch; unsigned int nReadPos; @@ -266,8 +266,8 @@ public: const_reference operator[](size_type pos) const { return vch[pos + nReadPos]; } reference operator[](size_type pos) { return vch[pos + nReadPos]; } void clear() { vch.clear(); nReadPos = 0; } - iterator insert(iterator it, const char x=char()) { return vch.insert(it, x); } - void insert(iterator it, size_type n, const char x) { vch.insert(it, n, x); } + iterator insert(iterator it, const uint8_t x) { return vch.insert(it, x); } + void insert(iterator it, size_type n, const uint8_t x) { vch.insert(it, n, x); } value_type* data() { return vch.data() + nReadPos; } const value_type* data() const { return vch.data() + nReadPos; } |