MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / recv_into

Method recv_into

example_code/item_099.py:142–144  ·  view source on GitHub ↗
(self, buffer)

Source from the content-addressed store, hash-verified

140 return video_view[byte_offset : byte_offset + size]
141
142 def recv_into(self, buffer):
143 source_data = video_view[byte_offset : byte_offset + size]
144 buffer[:] = source_data
145
146socket = ... # socket connection to the client
147video_cache = ... # Cache of incoming video stream

Callers 2

item_099.pyFile · 0.80
run_testFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected