Lines Matching refs:TBinaryProtocol
24 TBinaryProtocol = __TObject.new(TProtocolBase, {
33 function TBinaryProtocol:writeMessageBegin(name, ttype, seqid)
35 self:writeI32(libluabitwise.bor(TBinaryProtocol.VERSION_1, ttype))
45 function TBinaryProtocol:writeMessageEnd()
48 function TBinaryProtocol:writeStructBegin(name)
51 function TBinaryProtocol:writeStructEnd()
54 function TBinaryProtocol:writeFieldBegin(name, ttype, id)
59 function TBinaryProtocol:writeFieldEnd()
62 function TBinaryProtocol:writeFieldStop()
66 function TBinaryProtocol:writeMapBegin(ktype, vtype, size)
72 function TBinaryProtocol:writeMapEnd()
75 function TBinaryProtocol:writeListBegin(etype, size)
80 function TBinaryProtocol:writeListEnd()
83 function TBinaryProtocol:writeSetBegin(etype, size)
88 function TBinaryProtocol:writeSetEnd()
91 function TBinaryProtocol:writeBool(bool)
99 function TBinaryProtocol:writeByte(byte)
104 function TBinaryProtocol:writeI16(i16)
109 function TBinaryProtocol:writeI32(i32)
114 function TBinaryProtocol:writeI64(i64)
119 function TBinaryProtocol:writeDouble(dub)
124 function TBinaryProtocol:writeString(str)
130 function TBinaryProtocol:readMessageBegin()
133 local version = libluabitwise.band(sz, TBinaryProtocol.VERSION_MASK)
134 if version ~= TBinaryProtocol.VERSION_1 then
139 ttype = libluabitwise.band(sz, TBinaryProtocol.TYPE_MASK)
153 function TBinaryProtocol:readMessageEnd()
156 function TBinaryProtocol:readStructBegin()
160 function TBinaryProtocol:readStructEnd()
163 function TBinaryProtocol:readFieldBegin()
172 function TBinaryProtocol:readFieldEnd()
175 function TBinaryProtocol:readMapBegin()
182 function TBinaryProtocol:readMapEnd()
185 function TBinaryProtocol:readListBegin()
191 function TBinaryProtocol:readListEnd()
194 function TBinaryProtocol:readSetBegin()
200 function TBinaryProtocol:readSetEnd()
203 function TBinaryProtocol:readBool()
211 function TBinaryProtocol:readByte()
217 function TBinaryProtocol:readI16()
223 function TBinaryProtocol:readI32()
229 function TBinaryProtocol:readI64()
235 function TBinaryProtocol:readDouble()
241 function TBinaryProtocol:readString()
259 return TBinaryProtocol:new{