space_packet_parser.generators.fixed_length =========================================== .. py:module:: space_packet_parser.generators.fixed_length .. autoapi-nested-parse:: Fixed length packet generator. Functions --------- .. autoapisummary:: space_packet_parser.generators.fixed_length.fixed_length_generator Module Contents --------------- .. py:function:: fixed_length_generator(binary_data: Union[BinaryIO, socket.socket, bytes], *, packet_length_bytes: int, buffer_read_size_bytes: Optional[int] = None, show_progress: bool = False) -> collections.abc.Iterator[bytes] A generator that yields fixed-length chunks from binary_data. :param binary_data: Binary data source. :type binary_data: Union[BinaryIO, socket.socket, bytes] :param packet_length_bytes: Number of bytes per packet to yield. :type packet_length_bytes: int :param buffer_read_size_bytes: Number of bytes to read from the source per read. :type buffer_read_size_bytes: int, optional :param show_progress: If True, prints a status bar. :type show_progress: bool :Yields: *bytes* -- Fixed-length packet bytes.