This is an automated email from the ASF dual-hosted git repository.

wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new dbc54b72 replace google::protobuf::int64 by int64_t (#3045)
dbc54b72 is described below

commit dbc54b72a7df98f0bcf5e9b58e3b42774e8c4350
Author: gulu-goolu <murmur.wh...@gmail.com>
AuthorDate: Wed Jul 30 10:09:18 2025 +0800

    replace google::protobuf::int64 by int64_t (#3045)
    
    google::protobuf::int64 has been removed.
---
 src/butil/iobuf.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/butil/iobuf.h b/src/butil/iobuf.h
index 3682f61e..c397a264 100644
--- a/src/butil/iobuf.h
+++ b/src/butil/iobuf.h
@@ -23,7 +23,7 @@
 #define BUTIL_IOBUF_H
 
 #include <sys/uio.h>                             // iovec
-#include <stdint.h>                              // uint32_t
+#include <stdint.h>                              // uint32_t, int64_t
 #include <functional>
 #include <string>                                // std::string
 #include <ostream>                               // std::ostream
@@ -562,12 +562,12 @@ public:
     bool Next(const void** data, int* size) override;
     void BackUp(int count) override;
     bool Skip(int count) override;
-    google::protobuf::int64 ByteCount() const override;
+    int64_t ByteCount() const override;
 
 private:
     int _ref_index;
     int _add_offset;
-    google::protobuf::int64 _byte_count;
+    int64_t _byte_count;
     const IOBuf* _buf;
 };
 
@@ -593,7 +593,7 @@ public:
 
     bool Next(void** data, int* size) override;
     void BackUp(int count) override; // `count' can be as long as ByteCount()
-    google::protobuf::int64 ByteCount() const override;
+    int64_t ByteCount() const override;
 
 private:
     void _release_block();
@@ -601,7 +601,7 @@ private:
     IOBuf* _buf;
     uint32_t _block_size;
     IOBuf::Block *_cur_block;
-    google::protobuf::int64 _byte_count;
+    int64_t _byte_count;
 };
 
 // Wrap IOBuf into input of snappy compression.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to