Class HostDataReadAck

java.lang.Object
uk.ac.manchester.spinnaker.messages.eieio.EIEIOCommandMessage
uk.ac.manchester.spinnaker.messages.eieio.HostDataReadAck
All Implemented Interfaces:
EIEIOMessage<EIEIOCommandMessage.Header>, SerializableMessage

public class HostDataReadAck
extends EIEIOCommandMessage
Packet sent by the host computer to the SpiNNaker system in the context of the buffering output technique to signal that the host has received a request to read data.
See Also:
HostDataRead
  • Field Details

    • sequenceNumber

      public final byte sequenceNumber
      The message sequence number that is being acknowledged.
  • Constructor Details

    • HostDataReadAck

      public HostDataReadAck​(byte sequenceNumber)
      Create.
      Parameters:
      sequenceNumber - The message sequence number that is being acknowledged.
  • Method Details

    • addToBuffer

      public void addToBuffer​(ByteBuffer buffer)
      Description copied from interface: SerializableMessage
      Writes this message into the given buffer as a contiguous range of bytes. This is so that a message can be sent. Implementors may assume that the buffer has been configured to be little-endian and that its position is at the point where they should begin writing. Once it has finished, the position should be immediately after the last byte written by this method.

      Calling this method should not update the internal state of the message. It should be possible to add the message to multiple buffers without special precautions by the caller.

      Specified by:
      addToBuffer in interface SerializableMessage
      Overrides:
      addToBuffer in class EIEIOCommandMessage
      Parameters:
      buffer - The buffer to write into.