MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guida Utente Pagina 334

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 333
void GetCharData(mxChar* buffer, mwSize len) const
Purpose Copy array’s data into supplied mxChar buffer
C++
Syntax
#include "mclcppclass. h"
mxChar data[6] = {'H', 'e' , `l' , 'l' , 'o' , '\0'};
mxChar data_copy[6] ;
mwArray a(1, 6, mxCHAR_CLASS);
a.SetData(data, 6);
a.GetData(data_copy, 6);
Arguments buffer
Buffer to receive copy
len
Maximum length of buffer. A maximum of len elements will be
copied.
Return
Value
None
Description The data is copied in column-major order. If the underlying array is not
of type
mxCHAR_CLASS,thedataisconvertedtothistypeasitiscopied.
If a conversion cannot be made, an
mwException is thrown.
C-80
Vedere la pagina 333
1 2 ... 329 330 331 332 333 334 335 336 337 338 339 ... 353 354

Commenti su questo manuale

Nessun commento