mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use protobuf int64 type
This commit is contained in:
@@ -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_;
|
||||||
|
|||||||
Reference in New Issue
Block a user