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.