Thrift library updates, remove unsigned types
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664772 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/protocol/TBinaryProtocol.h b/lib/cpp/src/protocol/TBinaryProtocol.h
index 7780f16..d66fa2f 100644
--- a/lib/cpp/src/protocol/TBinaryProtocol.h
+++ b/lib/cpp/src/protocol/TBinaryProtocol.h
@@ -27,7 +27,7 @@
virtual uint32_t writeMessageBegin(shared_ptr<TTransport> out,
const std::string name,
const TMessageType messageType,
- const uint32_t seqid) const;
+ const int32_t seqid) const;
virtual uint32_t writeMessageEnd(shared_ptr<TTransport> out) const;
@@ -69,23 +69,14 @@
const bool value) const;
uint32_t writeByte(shared_ptr<TTransport> out,
- const uint8_t byte) const;
-
- uint32_t writeU16(shared_ptr<TTransport> out,
- const uint16_t u16) const;
+ const int8_t byte) const;
uint32_t writeI16(shared_ptr<TTransport> out,
const int16_t i16) const;
- uint32_t writeU32(shared_ptr<TTransport> out,
- const uint32_t u32) const;
-
uint32_t writeI32(shared_ptr<TTransport> out,
const int32_t i32) const;
- uint32_t writeU64(shared_ptr<TTransport> out,
- const uint64_t u64) const;
-
uint32_t writeI64(shared_ptr<TTransport> out,
const int64_t i64) const;
@@ -100,7 +91,7 @@
uint32_t readMessageBegin(shared_ptr<TTransport> in,
std::string& name,
TMessageType& messageType,
- uint32_t& seqid) const;
+ int32_t& seqid) const;
uint32_t readMessageEnd(shared_ptr<TTransport> in) const;
@@ -139,23 +130,14 @@
bool& value) const;
uint32_t readByte(shared_ptr<TTransport> in,
- uint8_t& byte) const;
-
- uint32_t readU16(shared_ptr<TTransport> in,
- uint16_t& u16) const;
+ int8_t& byte) const;
uint32_t readI16(shared_ptr<TTransport> in,
int16_t& i16) const;
- uint32_t readU32(shared_ptr<TTransport> in,
- uint32_t& u32) const;
-
uint32_t readI32(shared_ptr<TTransport> in,
int32_t& i32) const;
- uint32_t readU64(shared_ptr<TTransport> in,
- uint64_t& u64) const;
-
uint32_t readI64(shared_ptr<TTransport> in,
int64_t& i64) const;