MCPcopy
hub / github.com/PyMySQL/PyMySQL / read_string

Method read_string

pymysql/protocol.py:137–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

135 return result
136
137 def read_string(self):
138 end_pos = self._data.find(b"\0", self._position)
139 if end_pos < 0:
140 return None
141 result = self._data[self._position : end_pos]
142 self._position = end_pos + 1
143 return result
144
145 def read_length_encoded_integer(self):
146 """Read a 'Length Coded Binary' number from the data buffer.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected