MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / read_string

Method read_string

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected