OSCMessage

An OSC message contains an address and a set of arguments.

Constructors

this
this()

Constructs a new empty OSC message.

this
this(string addr)

Constructs a new OSC message using an address.

this
this(Address addr)

Constructs a new OSC message using an address.

this
this(const(OSCMessage) copy)

Constructs a new OSC message by cloning another one.

Members

Functions

add
OSCMessage add(T v)

Adds an argument to the message.

add
OSCMessage add(T v)

Adds a bool to the message.

addImpulse
OSCMessage addImpulse()

Adds an impulse to the message.

addNull
OSCMessage addNull()

Adds a null to the message.

argumentAt
OSCArgument argumentAt(size_t idx)

Gets the argument at the given index.

at
T at(size_t idx)

Gets the argument at the given index.

at
T at(size_t idx)

Gets the integer at the given index.

at
T at(size_t idx)

Gets the float at the given index.

at
T at(size_t idx)

Gets the string at the given index.

at
T at(size_t idx)

Gets the blob at the given index.

at
T at(size_t idx)

Gets the bool at the given index.

at
T at(size_t idx)

Gets the timetag at the given index.

dup
OSCMessage dup()

Duplicates the current message.

isBool
bool isBool(size_t idx)

Checks if the given argument is a boolean.

isFalse
bool isFalse(size_t idx)

Checks if the given argument is false.

isFloat
bool isFloat(size_t idx)

Checks if the given argument is a float.

isImpulse
bool isImpulse(size_t idx)

Checks if the given argument is an impulse.

isInt
bool isInt(size_t idx)

Checks if the given argument is an integer.

isInt
bool isInt(size_t idx)

Checks if the given argument is an blob.

isNull
bool isNull(size_t idx)

Checks if the given argument is null.

isString
bool isString(size_t idx)

Checks if the given argument is an string.

isTimeTag
bool isTimeTag(size_t idx)

Checks if the given argument is a timetag.

isTrue
bool isTrue(size_t idx)

Checks if the given argument is true.

typeAt
TypeTag typeAt(size_t idx)

Gets the type of the argument at the given index.

Properties

address
Address address [@property getter]

Gets the message's address.

address
Address address [@property setter]

Sets the message's address.

data
ubyte[] data [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property getter]

Gets the message's argument count.

types
const(TypeTagString) types [@property getter]

Gets the argment's types.

Inherited Members

From OSCPacket

parse
OSCPacket parse(ubyte[] data)

Parses the given binaray data and returns an OSCPacket (a message or a bundle).

data
ubyte[] data [@property getter]

Converts the packet into a byte array.

_parseBundle
OSCBundle _parseBundle(ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
_parseMessage
OSCMessage _parseMessage(ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
_getAddress
Address _getAddress(ubyte[] data, size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
_getTypes
TypeTagString _getTypes(ubyte[] data, size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
_get
T _get(ubyte[] data, size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
_get
T _get(ubyte[] data, size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
_get
T _get(ubyte[] data, size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
_get
T _get(ubyte[] data, size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
_set
ubyte[] _set(const(T) v)
Undocumented in source. Be warned that the author may not have intended to support it.
_set
ubyte[] _set(const(T) v)
Undocumented in source. Be warned that the author may not have intended to support it.
_set
ubyte[] _set(const(T) v)
Undocumented in source. Be warned that the author may not have intended to support it.
_set
ubyte[] _set(const(T) v)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta