Exemple #1
0
 def decode_int(buf, offset):
     return LE_INT.unpack_from(buf, offset)[0]
Exemple #2
0
 def get_message_type(self, invocation):
     return LE_INT.unpack_from(invocation.request.buf,
                               _OUTBOUND_MESSAGE_MESSAGE_TYPE_OFFSET)[0]