Metodo System::String::ToByteArray

String::ToByteArray method

Converte la stringa o la sottostringa in un array di byte.

ArrayPtr<uint8_t> System::String::ToByteArray(int32_t startIndex=0, int32_t length=INT32_MAX, bool LE=true) const
ParametroTipoDescrizione
startIndexint32_tIndice di inizio della sottostringa.
lunghezzaint32_tLunghezza della sottostringa.
LEboolSe vero, codifica i caratteri usando il little endian; altrimenti, usa il big endian.

ReturnValue

Array containing bytes representing characters of the string.

Vedi anche