From ee9a9787126a0a66498d538e51768fa0bb54ff7f Mon Sep 17 00:00:00 2001 From: chenBright Date: Tue, 2 Sep 2025 19:36:55 +0800 Subject: [PATCH] Use int64_t instead of google::protobuf::int64 --- src/butil/iobuf.cpp | 4 ++-- src/json2pb/zero_copy_stream_writer.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/butil/iobuf.cpp b/src/butil/iobuf.cpp index f1f3d02347..5ad1356653 100644 --- a/src/butil/iobuf.cpp +++ b/src/butil/iobuf.cpp @@ -1869,7 +1869,7 @@ bool IOBufAsZeroCopyInputStream::Skip(int count) { return false; } -google::protobuf::int64 IOBufAsZeroCopyInputStream::ByteCount() const { +int64_t IOBufAsZeroCopyInputStream::ByteCount() const { return _byte_count; } @@ -1990,7 +1990,7 @@ void IOBufAsZeroCopyOutputStream::BackUp(int count) { LOG_IF(FATAL, count != 0) << "BackUp an empty IOBuf"; } -google::protobuf::int64 IOBufAsZeroCopyOutputStream::ByteCount() const { +int64_t IOBufAsZeroCopyOutputStream::ByteCount() const { return _byte_count; } diff --git a/src/json2pb/zero_copy_stream_writer.h b/src/json2pb/zero_copy_stream_writer.h index 53455cc8e6..6404211958 100644 --- a/src/json2pb/zero_copy_stream_writer.h +++ b/src/json2pb/zero_copy_stream_writer.h @@ -29,7 +29,7 @@ // // Interfaces of ZeroCopyOutputStream // bool Next(void** data, int* size); // void BackUp(int count); -// google::protobuf::int64 ByteCount() const; +// int64_t ByteCount() const; // //private: // IOBuf* _buf;