MCPcopy
hub / github.com/kovidgoyal/kitty / parse_bytes

Function parse_bytes

kitty_tests/__init__.py:30–36  ·  view source on GitHub ↗
(screen, data, dump_callback=None)

Source from the content-addressed store, hash-verified

28
29
30def parse_bytes(screen, data, dump_callback=None):
31 data = memoryview(data)
32 while data:
33 dest = screen.test_create_write_buffer()
34 s = screen.test_commit_write_buffer(data, dest)
35 data = data[s:]
36 screen.test_parse_written_data(dump_callback)
37
38
39def draw_multicell(

Calls

no outgoing calls