| Top |
void ags_osc_buffer_util_put_int32 (guchar *buffer,gint32 val);
Put val
in buffer
.
Since: 3.0.0
void ags_osc_buffer_util_get_int32 (guchar *buffer,gint32 *val);
Get val
from buffer
.
Since: 3.0.0
void ags_osc_buffer_util_put_timetag (guchar *buffer,gint32 tv_secs,gint32 tv_fraction,gboolean immediately);
Put timetag specified by tv_secs
, tv_fraction
and immediately
to buffer
.
Since: 3.0.0
void ags_osc_buffer_util_get_timetag (guchar *buffer,gint32 *tv_secs,gint32 *tv_fraction,gboolean *immediately);
Get timetag specified by tv_secs
, tv_fraction
and immediately
from buffer
.
Since: 3.0.0
void ags_osc_buffer_util_put_float (guchar *buffer,gfloat val);
Put val
to buffer
.
Since: 3.0.0
void ags_osc_buffer_util_get_float (guchar *buffer,gfloat *val);
Get val
from buffer
.
Since: 3.0.0
void ags_osc_buffer_util_put_string (guchar *buffer,gchar *str,gsize length);
Put str
to buffer
.
buffer |
the guchar buffer |
|
str |
the ASCII string |
|
length |
the length to write or -1 to write until null byte |
Since: 3.0.0
void ags_osc_buffer_util_get_string (guchar *buffer,gchar **str,gsize *length);
Get str
from buffer
.
buffer |
the guchar buffer |
|
str |
the return location of ASCII string |
|
length |
the return location of bytes read |
Since: 3.0.0
void ags_osc_buffer_util_put_blob (guchar *buffer,gint32 data_size,guchar *data);
Put data
to buffer
.
Since: 3.0.0
void ags_osc_buffer_util_get_blob (guchar *buffer,gint32 *data_size,guchar **data);
Get data
from buffer
.
buffer |
the guchar buffer |
|
data_size |
the return location of blob's data size |
|
data |
the return location of blob's data |
Since: 3.0.0
void ags_osc_buffer_util_put_int64 (guchar *buffer,gint64 val);
Put val
to buffer
.
Since: 3.0.0
void ags_osc_buffer_util_get_int64 (guchar *buffer,gint64 *val);
Get val
from buffer
.
Since: 3.0.0
void ags_osc_buffer_util_put_double (guchar *buffer,gdouble val);
Put val
to buffer
.
Since: 3.0.0
void ags_osc_buffer_util_get_double (guchar *buffer,gdouble *val);
Get val
from buffer
.
Since: 3.0.0
void ags_osc_buffer_util_put_char (guchar *buffer,gchar val);
Put val
to buffer
.
Since: 3.0.0
void ags_osc_buffer_util_get_char (guchar *buffer,gchar *val);
Get val
from buffer
.
Since: 3.0.0
void ags_osc_buffer_util_put_rgba (guchar *buffer,guint8 r,guint8 g,guint8 b,guint8 a);
Put RGBA color specified by r
, g
, b
and a
to buffer
.
buffer |
the guchar buffer |
|
r |
the red value |
|
g |
the green value |
|
b |
the blue value |
|
a |
the alpha value |
Since: 3.0.0
void ags_osc_buffer_util_get_rgba (guchar *buffer,guint8 *r,guint8 *g,guint8 *b,guint8 *a);
Get RGBA color specified by r
, g
, b
and a
from buffer
.
buffer |
the guchar buffer |
|
r |
the return location of red value |
|
g |
the return location of green value |
|
b |
the return location of blue value |
|
a |
the return location of alpha value |
Since: 3.0.0
void ags_osc_buffer_util_put_midi (guchar *buffer,guint8 port,guint8 status_byte,guint8 data0,guint8 data1);
Put MIDI to buffer
.
buffer |
the guchar buffer |
|
port |
the port |
|
status_byte |
the status byte |
|
data0 |
the first piece of data |
|
data1 |
the second piece of data |
Since: 3.0.0
void ags_osc_buffer_util_get_midi (guchar *buffer,guint8 *port,guint8 *status_byte,guint8 *data0,guint8 *data1);
Get MIDI from buffer
.
buffer |
the guchar buffer |
|
port |
the return location of port |
|
status_byte |
the return location of status byte |
|
data0 |
the return location of first piece of data |
|
data1 |
the return location of second piece of data |
Since: 3.0.0
void ags_osc_buffer_util_put_packet (guchar *buffer,gint32 packet_size,guchar *packet);
Put packet
to buffer
.
Since: 3.0.0
void ags_osc_buffer_util_get_packet (guchar *buffer,gint32 *packet_size,guchar **packet);
Get packet
from buffer
.
buffer |
the guchar buffer |
|
packet_size |
the return location of packet's size |
|
packet |
the return location of packet |
Since: 3.0.0
void ags_osc_buffer_util_put_packets (guchar *buffer,gint32 packet_size,...);
Put packets to buffer
.
buffer |
the guchar buffer |
|
packet_size |
the packet size or -1 if no packet |
|
... |
the packets followed by packet size until it is -1 |
Since: 3.0.0
void ags_osc_buffer_util_put_message (guchar *buffer,gchar *address_pattern,gchar *type_tag);
Put message heading to buffer
. Note you have to put following arguments
yourself.
Since: 3.0.0
void ags_osc_buffer_util_get_message (guchar *buffer,gchar **address_pattern,gchar **type_tag);
Get message heading from buffer
. Note you have to get following arguments
yourself.
buffer |
the guchar buffer |
|
address_pattern |
return location of the address pattern |
|
type_tag |
return location of the type tag |
Since: 3.0.0
void ags_osc_buffer_util_put_bundle (guchar *buffer,gint32 tv_secs,gint32 tv_fraction,gboolean immediately);
Put bundle to buffer
.
Since: 3.0.0