MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / make_error_body

Method make_error_body

tests/unit/io/utils.py:228–232  ·  view source on GitHub ↗
(self, code, msg)

Source from the content-addressed store, hash-verified

226 return options_buf.getvalue()
227
228 def make_error_body(self, code, msg):
229 buf = BytesIO()
230 write_int(buf, code)
231 write_string(buf, msg)
232 return buf.getvalue()
233
234 def make_msg(self, header, body=bytes()):
235 return header + uint32_pack(len(body)) + body

Callers 1

Calls 2

write_intFunction · 0.90
write_stringFunction · 0.90

Tested by 1