Package heronarts.lx.osc
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 TypeMethodDescriptionintGets the number of bytes used by this argument uses in its encoded representation.charReturns the type tag used to encode this argumentvoidserialize(ByteBuffer buffer) Serializes this argument to a bufferbooleandoubletoDouble()floattoFloat()inttoInt()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
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()
-