Method: Thrift::BinaryProtocol#write_message_begin
- Defined in:
- lib/thrift/protocol/binary_protocol.rb
#write_message_begin(name, type, seqid) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/thrift/protocol/binary_protocol.rb', line 38 def (name, type, seqid) # this is necessary because we added (needed) bounds checking to # write_i32, and 0x80010000 is too big for that. if strict_write write_i16(VERSION_1 >> 16) write_i16(type) write_string(name) write_i32(seqid) else write_string(name) write_byte(type) write_i32(seqid) end end |