对bool类型进行编码 :param value: :return:
(value)
| 167 | |
| 168 | @staticmethod |
| 169 | def _encode_bool(value): |
| 170 | """ |
| 171 | 对bool类型进行编码 |
| 172 | :param value: |
| 173 | :return: |
| 174 | """ |
| 175 | result = [] |
| 176 | if value: |
| 177 | result.append(ord('T')) |
| 178 | else: |
| 179 | result.append(ord('F')) |
| 180 | return result |
| 181 | |
| 182 | @staticmethod |
| 183 | def _encode_int(value): |
no outgoing calls
no test coverage detected