Package heronarts.lx.osc
Class OscBlob
java.lang.Object
heronarts.lx.osc.OscBlob
- All Implemented Interfaces:
OscArgument
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the number of bytes used by this argument uses in its encoded representation.byte[]
getData()
char
Returns the type tag used to encode this argumentvoid
serialize
(ByteBuffer buffer) Serializes this argument to a buffersetData
(byte[] data) boolean
double
toDouble()
float
toFloat()
int
toInt()
Gets an integer value of this argumenttoString()
-
Constructor Details
-
OscBlob
public OscBlob(byte[] data)
-
-
Method Details
-
getData
public byte[] getData() -
setData
-
getByteLength
public int getByteLength()Description copied from interface:OscArgument
Gets the number of bytes used by this argument uses in its encoded representation.- Specified by:
getByteLength
in interfaceOscArgument
- Returns:
- Number of bytes of data this argument consumes
-
getTypeTag
public char getTypeTag()Description copied from interface:OscArgument
Returns the type tag used to encode this argument- Specified by:
getTypeTag
in interfaceOscArgument
- Returns:
- Type-tag character for this argument
-
toString
-
serialize
Description copied from interface:OscArgument
Serializes this argument to a buffer- Specified by:
serialize
in interfaceOscArgument
- Parameters:
buffer
- ByteByffer to write to
-
toInt
public int toInt()Description copied from interface:OscArgument
Gets an integer value of this argument- Specified by:
toInt
in interfaceOscArgument
- Returns:
- Integer value of this argument
-
toFloat
public float toFloat()- Specified by:
toFloat
in interfaceOscArgument
-
toDouble
public double toDouble()- Specified by:
toDouble
in interfaceOscArgument
-
toBoolean
public boolean toBoolean()- Specified by:
toBoolean
in interfaceOscArgument
-