Bases: object
EIEIO header for data packets
| Parameters: |
|
|---|
Attributes
| count | |
| eieio_type | |
| is_time | |
| payload_base | |
| prefix | |
| prefix_type | |
| size | |
| tag |
Methods
| get_header_size(eieio_type[, is_prefix, ...]) | Get the size of a header with the given parameters |
| increment_count() | |
| read_eieio_header(byte_reader) | Read an eieio data header from a byte_reader |
| reset_count() | |
| write_eieio_header(byte_writer) | Writes the header to a writer |
Detailed Methods
Get the size of a header with the given parameters
| Parameters: |
|
|---|---|
| Returns: | The size of the header in bytes |
| Return type: | int |
Read an eieio data header from a byte_reader
| Parameters: | byte_reader (spinnman.data.abstract_byte_reader.AbstractByteReader) – The reader to read the data from |
|---|---|
| Returns: | an eieio header |
| Return type: | spinnman.messages.eieio.data_messages.eieio_data_header.EIEIODataHeader |
| Raises: |
|
Writes the header to a writer
| Parameters: | byte_writer (spinnman.data.abstract_byte_writer.AbstractByteWriter) – The writer to write the header to |
|---|