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