read_into

async lsst.ts.tcpip.read_into(reader: StreamReader, struct: Structure) None

Read binary data from a stream reader into a ctypes.Structure.

Parameters:
readerasyncio.StreamReader

Asynchronous stream reader.

structctypes.Structure

Structure to set.

Raises:
asyncio.IncompleteReadError or ConnectionError

If the connection is closed.