Enum Class FillDataType

java.lang.Object
java.lang.Enum<FillDataType>
uk.ac.manchester.spinnaker.transceiver.FillDataType
All Implemented Interfaces:
Serializable, Comparable<FillDataType>, Constable

public enum FillDataType extends Enum<FillDataType>
The fill unit for a fill of values in memory.
  • Enum Constant Details

    • WORD

      public static final FillDataType WORD
      Fill by words (4 bytes).
    • HALF_WORD

      public static final FillDataType HALF_WORD
      Fill by half words (2 bytes).
    • BYTE

      public static final FillDataType BYTE
      Fill by single bytes.
  • Field Details

    • size

      public final int size
      The encoding of the fill unit size.
  • Method Details

    • values

      public static FillDataType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FillDataType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • writeTo

      public void writeTo(int value, ByteBuffer buffer)
      Write a value to the buffer in an appropriate way for this fill unit.
      Parameters:
      value - The value to write.
      buffer - The buffer to write to.