Use protobuf int64 type

This commit is contained in:
seelabs
2016-06-08 09:18:02 -04:00
committed by Miguel Portilla
parent d88b63d4c8
commit 66f0caa309

View File

@@ -38,7 +38,7 @@ private:
using iterator = typename Buffers::const_iterator; using iterator = typename Buffers::const_iterator;
using const_buffer = boost::asio::const_buffer; using const_buffer = boost::asio::const_buffer;
std::int64_t count_ = 0; google::protobuf::int64 count_ = 0;
iterator last_; iterator last_;
iterator first_; // Where pos_ comes from iterator first_; // Where pos_ comes from
const_buffer pos_; // What Next() will return const_buffer pos_; // What Next() will return
@@ -56,7 +56,7 @@ public:
bool bool
Skip (int count) override; Skip (int count) override;
std::int64_t google::protobuf::int64
ByteCount() const override ByteCount() const override
{ {
return count_; return count_;
@@ -142,7 +142,7 @@ private:
Streambuf& streambuf_; Streambuf& streambuf_;
std::size_t blockSize_; std::size_t blockSize_;
std::size_t count_ = 0; google::protobuf::int64 count_ = 0;
std::size_t commit_ = 0; std::size_t commit_ = 0;
buffers_type buffers_; buffers_type buffers_;
iterator pos_; iterator pos_;
@@ -160,7 +160,7 @@ public:
void void
BackUp (int count) override; BackUp (int count) override;
std::int64_t google::protobuf::int64
ByteCount() const override ByteCount() const override
{ {
return count_; return count_;