From c42613f5651f6e6a551bf17348232874529ff6c1 Mon Sep 17 00:00:00 2001 From: gulu-goolu Date: Wed, 30 Jul 2025 00:24:58 +0800 Subject: [PATCH] replace google::protobuf::int64 by int64_t 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 3682f61ecc..c397a26460 100644 --- a/src/butil/iobuf.h +++ b/src/butil/iobuf.h @@ -23,7 +23,7 @@ #define BUTIL_IOBUF_H #include // iovec -#include // uint32_t +#include // uint32_t, int64_t #include #include // std::string #include // std::ostream @@ -562,12 +562,12 @@ class IOBufAsZeroCopyInputStream 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 @@ class IOBufAsZeroCopyOutputStream 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 @@ class IOBufAsZeroCopyOutputStream 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.