Home
last modified time | relevance | path

Searched refs:PROTOCOL_ID (Results 1 – 17 of 17) sorted by relevance

/thrift-3.4.0/lib/rb/lib/thrift/protocol/
Dcompact_protocol.rb23 PROTOCOL_ID = [0x82].pack('c').unpack('c').first constant in Thrift.CompactProtocol
108 write_byte(PROTOCOL_ID)
225 if protocol_id != PROTOCOL_ID
226 raise ProtocolException.new("Expected protocol id #{PROTOCOL_ID} but got #{protocol_id}")
/thrift-3.4.0/lib/rb/ext/
Dcompact_protocol.c45 static int PROTOCOL_ID; variable
205 write_byte_direct(transport, PROTOCOL_ID); in rb_thrift_compact_proto_write_message_begin()
438 if (protocol_id != PROTOCOL_ID) { in rb_thrift_compact_proto_read_message_begin()
440 int len = sprintf(buf, "Expected protocol id %d but got %d", PROTOCOL_ID, protocol_id); in rb_thrift_compact_proto_read_message_begin()
577 PROTOCOL_ID = FIX2INT(rb_const_get(thrift_compact_protocol_class, rb_intern("PROTOCOL_ID"))); in Init_constants()
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/protocol/
DTCompactProtocol.java88 private static final byte PROTOCOL_ID = (byte) 0x82; field in TCompactProtocol
199 writeByteDirect(PROTOCOL_ID); in writeMessageBegin()
490 if (protocolId != PROTOCOL_ID) { in readMessageBegin()
493 + Integer.toHexString(PROTOCOL_ID) in readMessageBegin()
/thrift-3.4.0/lib/dart/lib/src/protocol/
Dt_compact_protocol.dart36 static const int PROTOCOL_ID = 0x82;
88 writeByte(PROTOCOL_ID);
277 if (protocolId != PROTOCOL_ID) {
279 'Expected protocol id $PROTOCOL_ID but got $protocolId');
/thrift-3.4.0/lib/php/lib/Protocol/
DTCompactProtocol.php61 const PROTOCOL_ID = 0x82; define in Thrift\\Protocol\\TCompactProtocol
168 $this->writeUByte(TCompactProtocol::PROTOCOL_ID) +
443 if ($protoId != TCompactProtocol::PROTOCOL_ID) {
/thrift-3.4.0/lib/d/src/thrift/protocol/
Dcompact.d135 writeByte(cast(byte)PROTOCOL_ID); in writeMessageBegin()
250 if (protocolId != cast(byte)PROTOCOL_ID) { in readMessageBegin()
588 enum PROTOCOL_ID = 0x82; variable
/thrift-3.4.0/lib/py/src/protocol/
DTCompactProtocol.py127 PROTOCOL_ID = 0x82 variable in TCompactProtocol
158 self.__writeUByte(self.PROTOCOL_ID)
335 if proto_id != self.PROTOCOL_ID:
/thrift-3.4.0/lib/delphi/src/
DThrift.Protocol.Compact.pas58 PROTOCOL_ID = Byte( $82);
363 WriteByteDirect( PROTOCOL_ID);
668 if (protocolId <> PROTOCOL_ID)
669 then raise TProtocolExceptionBadVersion.Create( 'Expected protocol id ' + IntToHex(PROTOCOL_ID,2)
/thrift-3.4.0/lib/nodejs/lib/thrift/
Dcompact_protocol.js71 TCompactProtocol.PROTOCOL_ID = -126; //1000 0010
244 this.writeByte(TCompactProtocol.PROTOCOL_ID);
579 if (protocolId != TCompactProtocol.PROTOCOL_ID) {
Dheader_transport.js206 return protocolId === TCompactProtocol.PROTOCOL_ID &&
/thrift-3.4.0/lib/py/src/transport/
DTHeaderTransport.py187 elif (byte_index(first_word, 0) == TCompactProtocol.PROTOCOL_ID and
221 elif (byte_index(second_word, 0) == TCompactProtocol.PROTOCOL_ID and
/thrift-3.4.0/lib/cpp/src/thrift/transport/
DTHeaderTransport.cpp107 } else if (static_cast<int8_t>(sz >> 24) == TCompactProtocol::PROTOCOL_ID in readFrame()
135 } else if (static_cast<int8_t>(magic >> 24) == TCompactProtocol::PROTOCOL_ID in readFrame()
/thrift-3.4.0/lib/cpp/src/thrift/protocol/
DTCompactProtocol.tcc95 wsize += writeByte(PROTOCOL_ID); in writeMessageBegin()
429 if (protocolId != PROTOCOL_ID) { in readMessageBegin()
DTCompactProtocol.h38 static const int8_t PROTOCOL_ID = (int8_t)0x82u;
/thrift-3.4.0/lib/haxe/src/org/apache/thrift/protocol/
DTCompactProtocol.hx47 private static inline var PROTOCOL_ID : Int = 0x82;
163 WriteByteDirect( PROTOCOL_ID);
414 if (protocolId != PROTOCOL_ID) {
415 …tocolException.INVALID_DATA, "Expected protocol id " + StringTools.hex(PROTOCOL_ID,2) + " but got …
/thrift-3.4.0/lib/c_glib/src/thrift/c_glib/protocol/
Dthrift_compact_protocol.c52 static const gint8 PROTOCOL_ID = (gint8)0x82u;
451 if ((ret = thrift_protocol_write_byte (protocol, PROTOCOL_ID, error)) < 0) { in thrift_compact_protocol_write_message_begin()
873 if (protocol_id != PROTOCOL_ID) { in thrift_compact_protocol_read_message_begin()
/thrift-3.4.0/lib/erl/src/
Dthrift_compact_protocol.erl50 -define(PROTOCOL_ID, 16#82). macro