IntPtr buf = Stdlib.malloc ((uint) bytes.Length + 1);
Marshal.Copy (bytes, 0, buf, bytes.Length);
Marshal.WriteByte (buf, bytes.Length, 0);
IntPtr buf = Stdlib.malloc ((uint) bytes.Length + 1);
Marshal.Copy (bytes, 0, buf, bytes.Length);
Marshal.WriteByte (buf, bytes.Length, 0);