(self)
| 183 | return self._data[0] == 0 and len(self._data) >= 7 |
| 184 | |
| 185 | def is_eof_packet(self): |
| 186 | # http://dev.mysql.com/doc/internals/en/generic-response-packets.html#packet-EOF_Packet |
| 187 | # Caution: \xFE may be LengthEncodedInteger. |
| 188 | # If \xFE is LengthEncodedInteger header, 8bytes followed. |
| 189 | return self._data[0] == 0xFE and len(self._data) < 9 |
| 190 | |
| 191 | def is_auth_switch_request(self): |
| 192 | # http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest |
no outgoing calls
no test coverage detected