Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/butil/iobuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
};

Expand All @@ -593,15 +593,15 @@ 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();

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.
Expand Down
Loading