mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Use protobuf int64 type
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user