示例#1
0
 def decode(self, t, in_buffer):
     if not isinstance(in_buffer, ByteBuffer):
         raise TypeError("in_buffer is not ByteBuffer")
     AbstractGlobalEndRequestCodec.decode(t, in_buffer)
     global_status = in_buffer.get_int8()
     if global_status > -1:
         t.global_status = GlobalStatus(global_status)
示例#2
0
 def encode(self, t, out_buffer):
     if not isinstance(out_buffer, ByteBuffer):
         raise TypeError("out_buffer is not ByteBuffer")
     AbstractGlobalEndRequestCodec.encode(t, out_buffer)
     global_status = t.global_status
     if global_status is not None:
         out_buffer.put_int8(global_status.value)
     else:
         out_buffer.put_int8(-1)
示例#3
0
 def decode(self, t, in_buffer):
     if not isinstance(in_buffer, ByteBuffer):
         raise TypeError("in_buffer is not ByteBuffer")
     AbstractGlobalEndRequestCodec.decode(t, in_buffer)
示例#4
0
 def encode(self, t, out_buffer):
     if not isinstance(out_buffer, ByteBuffer):
         raise TypeError("out_buffer is not ByteBuffer")
     AbstractGlobalEndRequestCodec.encode(t, out_buffer)