File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323#define BUTIL_IOBUF_H
2424
2525#include < sys/uio.h> // iovec
26- #include < stdint.h> // uint32_t
26+ #include < stdint.h> // uint32_t, int64_t
2727#include < functional>
2828#include < string> // std::string
2929#include < ostream> // std::ostream
@@ -562,12 +562,12 @@ class IOBufAsZeroCopyInputStream
562562 bool Next (const void ** data, int * size) override ;
563563 void BackUp (int count) override ;
564564 bool Skip (int count) override ;
565- google::protobuf::int64 ByteCount () const override ;
565+ int64_t ByteCount () const override ;
566566
567567private:
568568 int _ref_index;
569569 int _add_offset;
570- google::protobuf::int64 _byte_count;
570+ int64_t _byte_count;
571571 const IOBuf* _buf;
572572};
573573
@@ -593,15 +593,15 @@ class IOBufAsZeroCopyOutputStream
593593
594594 bool Next (void ** data, int * size) override ;
595595 void BackUp (int count) override ; // `count' can be as long as ByteCount()
596- google::protobuf::int64 ByteCount () const override ;
596+ int64_t ByteCount () const override ;
597597
598598private:
599599 void _release_block ();
600600
601601 IOBuf* _buf;
602602 uint32_t _block_size;
603603 IOBuf::Block *_cur_block;
604- google::protobuf::int64 _byte_count;
604+ int64_t _byte_count;
605605};
606606
607607// Wrap IOBuf into input of snappy compression.
You can’t perform that action at this time.
0 commit comments