Interface OscArgument

All Known Implementing Classes:
OscBlob, OscBool, OscChar, OscDouble, OscFalse, OscFloat, OscInfinitum, OscInt, OscLong, OscMidi, OscNil, OscRgba, OscSentinel, OscString, OscSymbol, OscTimeTag, OscTrue

public interface OscArgument
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the number of bytes used by this argument uses in its encoded representation.
    char
    Returns the type tag used to encode this argument
    void
    Serializes this argument to a buffer
    boolean
     
    double
     
    float
     
    int
    Gets an integer value of this argument
  • Method Details

    • getByteLength

      int getByteLength()
      Gets the number of bytes used by this argument uses in its encoded representation.
      Returns:
      Number of bytes of data this argument consumes
    • getTypeTag

      char getTypeTag()
      Returns the type tag used to encode this argument
      Returns:
      Type-tag character for this argument
    • serialize

      void serialize(ByteBuffer buffer)
      Serializes this argument to a buffer
      Parameters:
      buffer - ByteByffer to write to
    • toInt

      int toInt()
      Gets an integer value of this argument
      Returns:
      Integer value of this argument
    • toFloat

      float toFloat()
    • toDouble

      double toDouble()
    • toBoolean

      boolean toBoolean()