ServerCodec
Value members
Concrete methods
Inherited methods
Creates a new packet decoded
from the ByteBuffer. This method tries
to read a null terminated string at the
beginning of the provided buffer. If it
equals the bundle identifier, the
decode
of Bundle
is called (which may recursively decode
nested bundles), otherwise the one from
Message
.
Creates a new packet decoded
from the ByteBuffer. This method tries
to read a null terminated string at the
beginning of the provided buffer. If it
equals the bundle identifier, the
decode
of Bundle
is called (which may recursively decode
nested bundles), otherwise the one from
Message
.
This method is final. For messages encountered,
decodeMessage
is called, , thus for
implementations of PacketCodec
, it is sufficient
to overwrite decodeMessage
.
- Value Params
- b
ByteBuffer
pointing right at the beginning of the packet. the buffer's limited should be set appropriately to allow the complete packet to be read. when the method returns, the buffer's position is right after the end of the packet.
- Returns
new decoded OSC packet
- Inherited from
- PacketCodec
Calculates the byte size of the encoded bundle. This method is final. The size is the sum of the bundle name, its time-tag and the sizes of each bundle element.
Calculates the byte size of the encoded bundle. This method is final. The size is the sum of the bundle name, its time-tag and the sizes of each bundle element.
For contained messages,
encodedMessageSize
will be called, thus for
implementations of PacketCodec
, it is sufficient
to overwrite encodedMessageSize
.
- Inherited from
- PacketCodec