ToByteArray()

String::ToByteArray(int32_t, int32_t, bool) const method

Converts string or substring to array of bytes.

ArrayPtr<uint8_t> System::String::ToByteArray(int32_t startIndex=0, int32_t length=INT32_MAX, bool LE=1) const

Arguments

ParameterTypeDescription
startIndexint32_tSubstring start index.
lengthint32_tSubstring length.
LEboolIf true, encode characters using little endianness; otherwise, use big endianness.

Return Value

Array containing bytes representing characters of the string.

See Also