read_into

lsst.ts.hexrotcomm.read_into(reader, struct)

Read binary data from a socket into a ctypes.Structure.

Parameters:
reader : asyncio.StreamReader

Asynchronous stream reader.

struct : ctypes.Structure

Structure to set.

Raises:
ConnectionError

If the connection is closed.