MCPcopy Index your code
hub / github.com/python-websockets/websockets / get_frame

Function get_frame

experiments/optimization/parse_frames.py:16–19  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

14
15
16def get_frame(size):
17 repeat, remainder = divmod(size, 256 * 1024)
18 payload = repeat * text + text[:remainder]
19 return Frame(Opcode.TEXT, payload.encode(), True)
20
21
22def parse_frame(data, count, mask, extensions):

Callers

nothing calls this directly

Calls 2

FrameClass · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…