System::String::ToByteArray methode

String::ToByteArray method

Converteert een string of substring naar een array van bytes.

ArrayPtr<uint8_t> System::String::ToByteArray(int32_t startIndex=0, int32_t length=INT32_MAX, bool LE=true) const
ParameterTypeBeschrijving
startIndexint32_tStartindex van substring.
lengteint32_tLengte van substring.
LEboolAls true, codeer tekens met little-endian; anders gebruik big-endian.

ReturnValue

Array containing bytes representing characters of the string.

Zie ook