Enum FillDataType

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

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

  • 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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FillDataType valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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.