Esempio n. 1
0
/*--------------------------------------------------------------------
 * free
 */
static void bytes2any_free(t_bytes2any *x)
{
  pdstring_bytes_clear(&x->x_bytes);
  binbuf_free(x->x_binbuf);
  inlet_free(x->x_eos_in);
  outlet_free(x->x_outlet_done);
  outlet_free(x->x_outlet);
  return;
}
Esempio n. 2
0
/*--------------------------------------------------------------------
 * free
 */
static void any2bytes_free(t_any2bytes *x)
{
  pdstring_bytes_clear(&x->x_bytes);
  pdstring_atoms_clear(&x->x_atoms);
  binbuf_free(x->x_binbuf);
  inlet_free(x->x_eos_in);
  outlet_free(x->x_outlet);
  return;
}
Esempio n. 3
0
/*--------------------------------------------------------------------
 * anything
 */
static void any2bytes_anything(t_any2bytes *x, t_symbol *sel, int argc, t_atom *argv)
{
  //-- convert any -> bytes -> atoms
  t_pdstring_atoms arg_atoms = {argv,argc,0};
  pdstring_bytes_clear(&x->x_bytes);
  pdstring_any2bytes(x, &x->x_bytes, sel, &arg_atoms, x->x_binbuf);
  pdstring_bytes2atoms(x, &x->x_atoms, &x->x_bytes, x->x_eos);

  //-- output
  outlet_list(x->x_outlet, &s_list, x->x_atoms.a_len, x->x_atoms.a_buf);
}