public static int bgl_output_string( binary_port p, byte[] buf ) { p.stream.Write( buf, 0, buf.Length ); return buf.Length; }