Skip to content

Commit 01bb500

Browse files
committed
Changed return of ByteCount() to use plain int64_t.
This is now consistent across all protobuf APIs. It is no longer necessary to use the google::protobuf::int64 typedef.
1 parent 2feabd5 commit 01bb500

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/message_stream.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class InputStreamOverMessageStream : public TranscoderInputStream {
7171

7272
bool Skip(int) { return false; } // Not implemented (no need)
7373

74-
google::protobuf::int64 ByteCount() const { return 0; } // Not implemented
74+
int64_t ByteCount() const { return 0; } // Not implemented
7575

7676
int64_t BytesAvailable() const {
7777
if (position_ >= message_.size()) {

test/test_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ class TestZeroCopyInputStream : public TranscoderInputStream {
5151
bool Next(const void** data, int* size);
5252
void BackUp(int count);
5353
int64_t BytesAvailable() const;
54-
::google::protobuf::int64 ByteCount() const { return 0; } // Not implemented
55-
bool Skip(int) { return false; } // Not implemented
54+
int64_t ByteCount() const { return 0; } // Not implemented
55+
bool Skip(int) { return false; } // Not implemented
5656

5757
private:
5858
std::deque<std::string> chunks_;

0 commit comments

Comments
 (0)